P
Peter
Hi
is there some "nice" way of catching lots of different exceptions in
one catch block?
Something like:
try
{
.... do stuff which could throw lots of different exceptions ...
}
catch (IOException, BadImageFormatException,
UnauthorizedAccessException ex)
{
.... common handling for the exceptions
}
Usually I have to have lots of separate catch blocks.
Thanks,
Peter
is there some "nice" way of catching lots of different exceptions in
one catch block?
Something like:
try
{
.... do stuff which could throw lots of different exceptions ...
}
catch (IOException, BadImageFormatException,
UnauthorizedAccessException ex)
{
.... common handling for the exceptions
}
Usually I have to have lots of separate catch blocks.
Thanks,
Peter