[Newbies] exception handling
tapplek at gmail.com
Thu Sep 25 22:43:03 UTC 2008
On Thu, Sep 25, 2008 at 05:26:22PM -0500, Mark Volkmann wrote:
> Can someone point me to an example of how to raise and handle
> exceptions in Squeak Smalltalk? My Googling came up empty.
Look at class Exception. Here are a couple of doits to get you
started. Try printing them:
[self error: 'haha'] on: Error do: [:ex | ex return: ex messageText].
Matthew Fulmer -- http://mtfulmer.wordpress.com/
More information about the Beginners