Module: Zoidberg::Supervise::InstanceMethods
- Defined in:
- lib/zoidberg/supervise.rb
Instance Method Summary collapse
-
#abort(e) ⇒ Object
Customized method for raising exceptions that have been properly handled (preventing termination).
Instance Method Details
#abort(e) ⇒ Object
Customized method for raising exceptions that have been properly handled (preventing termination)
26 27 28 29 30 31 32 33 |
# File 'lib/zoidberg/supervise.rb', line 26 def abort(e) unless(e.is_a?(::Exception)) e = StandardError.new(e) end new_e = ::Zoidberg::Supervise::AbortException.new new_e.original_exception = e ::Kernel.raise new_e end |