Exception: Textus::Workflow::StepFailed
- Defined in:
- lib/textus/workflow.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
-
#step_name ⇒ Object
readonly
Returns the value of attribute step_name.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(step_name, cause) ⇒ StepFailed
constructor
A new instance of StepFailed.
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.}") end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
4 5 6 |
# File 'lib/textus/workflow.rb', line 4 def cause @cause end |
#step_name ⇒ Object (readonly)
Returns the value of attribute step_name.
4 5 6 |
# File 'lib/textus/workflow.rb', line 4 def step_name @step_name end |