On 24-Nov-05, at 12:50 PM, Damien Cassou wrote:
Cees De Groot a écrit :
[code] on: Exception do: [:ex | more code]
*really* important point; look up the classes inheriting from Exception - use the hierarchybrowser is my advice - and learn about using the correct form of exception to suit your code. Trapping the generic Exception is likely to cause much pain.
Some reasonable examples of using a more specific exception can be found if you look for all reference to the class ZeroDivide (which is for divide by 0 exceptions, surprise) or FileDoesNotExistException.
tim