Exception: Dynflow::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Dynflow::Error
show all
- Defined in:
- lib/dynflow.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.from_hash(hash) ⇒ Object
38
39
40
|
# File 'lib/dynflow.rb', line 38
def self.from_hash(hash)
self.new(hash[:message]).tap { |e| e.set_backtrace(hash[:backtrace]) }
end
|
Instance Method Details
#to_hash ⇒ Object
34
35
36
|
# File 'lib/dynflow.rb', line 34
def to_hash
{ class: self.class.name, message: message, backtrace: backtrace }
end
|