Re: [Fxruby-users] catching exceptions in event handlers
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-07-23 13:31:26
|
Emmanuel Touzery wrote: > i'm happy to read that FXApp#run is going to "forward me" the exception. but > it doesn't seem to work here (see code snippet at the end of the mail). Ahem. Emmanuel, when you run this program, you are correct that it raises an exception. Did you notice which line of code the backtrace was pointing to? ;) The exception that is raised in your onCmdOpen() method is being caught by the 'rescue' block at application.run. The code in that 'rescue' block raises yet another exception, though (hint: what does 'self' refer to in the call to FXMessageBox.error?). |