Is it Possible to have Multiple Try Blocks for Exception Handling
Printable View
Is it Possible to have Multiple Try Blocks for Exception Handling
you can use
Or this:Code:try
{
statement;
}
catch(SomeException1 ex1){}
catch(SomeException2 ex2){}
catch(Exception ex){}
I'm sure there are other ways, so yes you canCode:try
{
try{}
catch{}
}
catch{}
Why do you want to do this? Don't do it if it isn't necessary, it's a little expensive.Quote:
Originally Posted by Rawther