Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Content added Content deleted
Line 1,790: | Line 1,790: | ||
try: e [ bar(0) ] when: [ e isKindOf(U0) ifTrue: [ "Catched" println ] else: [ e throw ] ] |
try: e [ bar(0) ] when: [ e isKindOf(U0) ifTrue: [ "Catched" println ] else: [ e throw ] ] |
||
try: e [ bar(1) ] when: [ e isKindOf(U0) ifTrue: [ "Catched" println ] else: [ e throw ] ] |
try: e [ bar(1) ] when: [ e isKindOf(U0) ifTrue: [ "Catched" println ] else: [ e throw ] ] |
||
"Done" println |
|||
}</lang> |
}</lang> |
||