Exceptions: Difference between revisions

Content added Content deleted
Line 1,673:
: iwillCatch
| e |
try: e [ iwillThrowAnException ] when: [ System.Out "Exception catched : " <<. e << .cr ]
try: e [ 1 2 over last ] when: [ System.Out "Exception catched : " <<. e << .cr ]
"Done" println ;</lang>
 
Line 1,680:
<pre>
Exception catched : A new exception
Exception catched : Integer <1> does not understand #last
Done
</pre>