Question about Exception

Valloud Andres Andres.Valloud at oya.state.or.us
Wed Jul 24 18:46:06 UTC 2002


Hello.

> [Exception signal] on: Exception do: [:exception| Transcript show: 
'Exception !';cr]

Handler blocks should always do something with the exception.  You can tell
the exception to #resume (pretend nothing happened), #return/return: (drop
the block and pretend it returned nil/anObject), etc.
 
By the way, handler blocks should never do a ^-return.

Andres.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020724/8cf8c3b8/attachment.htm


More information about the Squeak-dev mailing list