Category:Smalltalk: Difference between revisions

Line 542:
 
<lang smalltalk>[ try block to be evaluated ] on:exception do:[:ex | handler code ]</lang>
where '<I>exception</I>' is an Exception class or Signal instance and the '<I>ex</I>' argument provides detail information (where and why) to the hander and also allows control of how to continue afterwards (proceed, return, restart, reject).
<br>The handler basically has the following options:
* ex return - return out of the try block
Anonymous user