Exception: Textus::Workflow::StepFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/workflow.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

Methods inherited from Error

#details, #exit_code, #hint, #to_envelope

Constructor Details

#initialize(step_name, cause) ⇒ StepFailed

Returns a new instance of StepFailed.



6
7
8
9
10
# File 'lib/textus/workflow.rb', line 6

def initialize(step_name, cause)
  @step_name = step_name
  @cause     = cause
  super(:workflow_step_failed, "workflow step '#{step_name}' failed: #{cause.message}")
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



4
5
6
# File 'lib/textus/workflow.rb', line 4

def cause
  @cause
end

#step_nameObject (readonly)

Returns the value of attribute step_name.



4
5
6
# File 'lib/textus/workflow.rb', line 4

def step_name
  @step_name
end