Results 1 to 3 of 3

Thread: Multiple Try Blocks

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2006
    Posts
    2

    Multiple Try Blocks

    Is it Possible to have Multiple Try Blocks for Exception Handling

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Multiple Try Blocks

    you can use
    Code:
    			try
    			{
    				statement;
    			}
    			catch(SomeException1 ex1){}
    			catch(SomeException2 ex2){}
    			catch(Exception ex){}
    Or this:
    Code:
    			try
    			{
    				try{}
    				catch{}
    			}
    			catch{}
    I'm sure there are other ways, so yes you can
    Last edited by ComputerJy; Jun 16th, 2006 at 05:44 AM.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Multiple Try Blocks

    Quote Originally Posted by Rawther
    Is it Possible to have Multiple Try Blocks for Exception Handling
    Why do you want to do this? Don't do it if it isn't necessary, it's a little expensive.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width