[Newbies] error trap

Davide Arrigo davide.arrigo at gmail.com
Wed Aug 9 13:54:11 UTC 2006


hi guys, I want to implement an "error trap" in Squeak, something like "on 
error goto:" in other  languages.
When a method encounter an error during execution of a block of code  (an 
error like: square root or logarithm of a negative numbers, division by zero 
and so on..) I want only a message, send to Transcript, without any dialog 
box ask to me if I want to proceed, stop or debug. I wouldn't halt the 
program but always proceed automatically with the next block of code 
evaluation.
Is it  possible?
Thanks in advance.

-- 
---------------
Davide Arrigo


More information about the Beginners mailing list