12 lines
171 B
C#
12 lines
171 B
C#
|
|
try {
|
||
|
|
foo();
|
||
|
|
}
|
||
|
|
catch (MyException e)
|
||
|
|
{
|
||
|
|
// handle exceptions of type MyException and derived
|
||
|
|
}
|
||
|
|
catch
|
||
|
|
{
|
||
|
|
// handle any type of exception not handled by above catches
|
||
|
|
}
|