RosettaCodeData/Task/Exceptions/Elena/exceptions-3.elena

9 lines
100 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
try
{
2023-10-02 18:11:16 -07:00
foo()
2023-07-01 11:58:00 -04:00
}
2023-10-02 18:11:16 -07:00
catch(MyException e)
2023-07-01 11:58:00 -04:00
{
// handle exceptions of type MyException and derived
}