Exception: Roast::Workflow::StepLoader::StepLoaderError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/roast/workflow/step_loader.rb

Overview

Custom exception classes

Direct Known Subclasses

StepExecutionError, StepNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, step_name: nil, original_error: nil) ⇒ StepLoaderError

Returns a new instance of StepLoaderError.



13
14
15
16
17
# File 'lib/roast/workflow/step_loader.rb', line 13

def initialize(message, step_name: nil, original_error: nil)
  @step_name = step_name
  @original_error = original_error
  super(message)
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



11
12
13
# File 'lib/roast/workflow/step_loader.rb', line 11

def original_error
  @original_error
end

#step_nameObject (readonly)

Returns the value of attribute step_name.



11
12
13
# File 'lib/roast/workflow/step_loader.rb', line 11

def step_name
  @step_name
end