[MacRuby] #878: Can't catch an exception of Sandbox.

MacRuby ruby-noreply at macosforge.org
Fri Aug 27 20:46:12 PDT 2010

#878: Can't catch an exception of Sandbox.
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  minor                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       

Comment(by lsansonetti@…):

 I believe it's because SecurityError is a special class that isn't caught
 by default rescue blocks.

 $ macruby -e "p SecurityError.ancestors"
 [SecurityError, Exception, NSObject, Kernel]
 $ macruby -e "p RuntimeError.ancestors"
 [RuntimeError, StandardError, Exception, NSObject, Kernel]

 Only StandardError exceptions are caught in default rescue blocks, I

Ticket URL: <http://www.macruby.org/trac/ticket/878#comment:2>
MacRuby <http://macruby.org/>

More information about the macruby-tickets mailing list