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



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

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

.inspectObject



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

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

.to_sObject



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

def self.to_s
  inspect
end

Instance Method Details

#inspectObject



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

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