rescue_from stores exception class names in a hash table, and  
associates them with handlers.

When an exception is raised there's a name lookup, and if an entry is  
found its handler is invoked. In particular rescue_from does not  
emulate Ruby's rescue semantics with regard to inheritance.

Which is the rationale? Don't you think taking is_a? and declaration  
order into account would provide a better (expected) usage? I could  
write a patch in that case.

-- fxn


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to