module Exceptor::InstanceMethods
Public Instance Methods
exceptor(constant = nil,&block)
click to toggle source
# File lib/exceptor/instance_methods.rb, line 4 def exceptor(constant = nil,&block) constant ||= self.class._default_exceptor begin block.call rescue => e instance_exec(ContextDelegator.new(block.binding),e,&constant.exceptors[e.class]) end end