Exception: Dynflow::Errors::PersistenceError

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

Overview

any persistence errors

Direct Known Subclasses

FatalPersistenceError

Class Method Summary collapse

Methods inherited from Dynflow::Error

from_hash, #to_hash

Class Method Details

.delegate(original_exception) ⇒ Object



41
42
43
44
45
# File 'lib/dynflow/errors.rb', line 41

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