[fxruby-users] Exception handling
Panich, Alexander
alexander.panich at intel.com
Tue Jun 21 08:04:36 EDT 2005
Hi all!
I have problem in catching exceptions which are sent by FXRuby objects.
At such code:
...
begin
FXMessageBox.error( app, MBOX_OK, "Error title", "Error msg" )
rescue
$stderr.puts "Rescue code"
ensure
$stderr.puts "Ensure code"
end
...
Where app - application object which still wasn't created. Due to this,
programs exits with next error:
FXMessageBox::create: trying to create window before creating parent
window.
Abort
I would like to catch this error and handle it my way. Unfortunately,
execution never reaches "rescue" or "ensure" statements.
Does anybody have an idea how to catch such errors?
Regards,
Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20050621/bca546ce/attachment.htm
More information about the fxruby-users
mailing list