|
-
Jun 16th, 2006, 04:41 AM
#1
Thread Starter
New Member
Multiple Try Blocks
Is it Possible to have Multiple Try Blocks for Exception Handling
-
Jun 16th, 2006, 05:41 AM
#2
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
-
Jun 16th, 2006, 02:17 PM
#3
Re: Multiple Try Blocks
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|