Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: Added comment) |
|||
Line 1,556: | Line 1,556: | ||
=={{header|Nimrod}}== |
=={{header|Nimrod}}== |
||
{{incomplete|Nimrod|Show/describe what happens when the program is run.}} |
|||
<lang nimrod>type U0 = object of EBase |
<lang nimrod>type U0 = object of EBase |
||
type U1 = object of EBase |
type U1 = object of EBase |
||
Line 1,575: | Line 1,574: | ||
foo()</lang> |
foo()</lang> |
||
Output: |
|||
<pre>Function foo caught exception U0 |
|||
Traceback (most recent call last) |
|||
exceptionnested.nim(18) exceptionnested |
|||
exceptionnested.nim(14) foo |
|||
exceptionnested.nim(9) bar |
|||
exceptionnested.nim(5) baz |
|||
Error: unhandled exception: Some error [U1] |
|||
Error: execution of an external program failed</pre> |
|||
=={{header|Objective-C}}== |
=={{header|Objective-C}}== |