class Contingency::Exceptions::ContingencyPlanException

Public Class Methods

new(original_exception, handler_exception) click to toggle source
# 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.message}"
  @backtrace = handler_exception.backtrace
end