Exception: Dynflow::Errors::PersistenceError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dynflow/errors.rb

Class Method Summary collapse

Class Method Details

.delegate(original_exception) ⇒ Object



29
30
31
32
33
# File 'lib/dynflow/errors.rb', line 29

def self.delegate(original_exception)
  self.new("caused by #{original_exception.class}: #{original_exception.message}").tap do |e|
    e.set_backtrace original_exception.backtrace
  end
end