Exceptions: Difference between revisions

m
imported>Arakov
imported>Arakov
Line 1,045:
{
constructor new()
<= super new("MyException raised");
}</syntaxhighlight>
 
Line 1,058:
<syntaxhighlight lang="elena">try
{
o.foo()
}
catch:(MyException e)
{
// handle exceptions of type MyException and derived
Anonymous user