Exception: Promiscuous::Error::Recovery

Inherits:
Base
  • Object
show all
Defined in:
lib/promiscuous/error/recovery.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, inner = nil) ⇒ Recovery

Returns a new instance of Recovery.



2
3
4
5
6
# File 'lib/promiscuous/error/recovery.rb', line 2

def initialize(message, inner=nil)
  message = "#{inner.class}: #{inner} -- #{message}" if inner
  super(message)
  set_backtrace(inner.backtrace) if inner
end