TryCatch

Damien Cassou damien.cassou at laposte.net
Thu Nov 24 19:49:00 UTC 2005


Hi,

How can I try/catch for errors in Squeak ? I didn't find anything. I 
would like to do something like :

[ aPieceOfCodeThatCanThrowsExceptions ]
    catch: [:exception | Transcript show: exception]

or

self try: [ aPieceOfCodeThatCanThrowsExceptions ]
       catch: [:exception | Transcript show: exception]


thank you


-- 
Damien



More information about the Squeak-dev mailing list