Class: WorkflowTemplate::Fatal::ForeignCodeError

Inherits:
Fatal
  • Object
show all
Defined in:
lib/workflow_template/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(foreign_error) ⇒ ForeignCodeError

Returns a new instance of ForeignCodeError.



71
72
73
74
75
# File 'lib/workflow_template/error.rb', line 71

def initialize(foreign_error)
  @foreign_error = foreign_error
  full_message = "Foreign error #{foreign_error.class.name}: #{foreign_error.message}"
  super(full_message)
end

Instance Attribute Details

#foreign_errorObject (readonly)

Returns the value of attribute foreign_error.



69
70
71
# File 'lib/workflow_template/error.rb', line 69

def foreign_error
  @foreign_error
end