Exception: Dynflow::Errors::UnknownError

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

Overview

placeholder in case the deserialized error is no longer available

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.for_exception_class(class_name) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/dynflow/errors.rb', line 8

def self.for_exception_class(class_name)
  Class.new(self) do
    define_singleton_method :name do
      class_name
    end
  end
end

.inspectObject



16
17
18
# File 'lib/dynflow/errors.rb', line 16

def self.inspect
  "#{UnknownError.name}[#{name}]"
end

.to_sObject



20
21
22
# File 'lib/dynflow/errors.rb', line 20

def self.to_s
  inspect
end

Instance Method Details

#inspectObject



24
25
26
# File 'lib/dynflow/errors.rb', line 24

def inspect
  "#{self.class.inspect}: #{message}"
end