4.4.7 Exceptions

Q How do I catch exceptions?
[ "code to guard" ] 
on: Error
do: [ "handling code" ]

User Contributed Notes

riverdusty (21 August 2014, 1:45 am)

Yeah, I tried this. It mostly gets ignored, and I get debug windows.

Does it work with, for instance, in a class side method for launching an application. ie MyClass class>> initialize [self new] on: Error do: [myHandlerCode]


Add a Note

Licensed under Creative Commons BY-NC-SA | Published using Pier |