Anonymous user
Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Exceptions/Catch an exception thrown in a nested call (view source)
Revision as of 10:56, 10 March 2020
, 4 years ago→{{header|Elena}}
Langurmonkey (talk | contribs) |
|||
Line 993:
</pre>
=={{header|Elena}}==
ELENA
<lang elena>import extensions;
class U0 : Exception
{
constructor new()
<= new();
}
class U1 : Exception
{
constructor new()
<= new();
}
singleton Exceptions
Line 1,011 ⟶ 1,019:
if (i == 0)
{
U0
}
else
{
U1
}
}
Line 1,027 ⟶ 1,035:
self.bar()
}
catch
{
console.printLine("U0 Caught")
|