TryCatch

stéphane ducasse ducasse at iam.unibe.ch
Fri Nov 25 08:45:55 UTC 2005


Damien

read the ExceptionTest classes they are gorgeous. Really This is the  
best documentation on exception catching
I ever read... :)

Stef

On 24 nov. 05, at 20:49, Damien Cassou wrote:

> 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