Exception: Contingency::Exceptions::ContingencyPlanException
- Inherits:
-
ContingencyError
- Object
- Exception
- ContingencyError
- Contingency::Exceptions::ContingencyPlanException
- Defined in:
- lib/contingency/exceptions.rb
Instance Attribute Summary
Attributes inherited from ContingencyError
Instance Method Summary collapse
-
#initialize(original_exception, handler_exception) ⇒ ContingencyPlanException
constructor
A new instance of ContingencyPlanException.
Constructor Details
#initialize(original_exception, handler_exception) ⇒ ContingencyPlanException
Returns a new instance of ContingencyPlanException.
13 14 15 16 17 18 |
# File 'lib/contingency/exceptions.rb', line 13 def initialize(original_exception, handler_exception) @message = "`Contingency::Plan` encountered exception `#{handler_exception.class.name}`" \ " while trying to handle exception `#{original_exception.class.name}`:" \ "\n#{handler_exception.}" @backtrace = handler_exception.backtrace end |