Exception: Temporal::Error::WorkflowFailure
- Inherits:
-
Temporal::Error
- Object
- StandardError
- Temporal::Error
- Temporal::Error::WorkflowFailure
- Defined in:
- lib/temporal/error/workflow_failure.rb
Overview
Used as a wrapper to perserve failure hierarchy in nested calls i.e. WorkflowFailure(ActivityError(WorkflowFailure(CancelledError)))
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(cause:) ⇒ WorkflowFailure
constructor
A new instance of WorkflowFailure.
Constructor Details
#initialize(cause:) ⇒ WorkflowFailure
Returns a new instance of WorkflowFailure.
10 11 12 13 14 |
# File 'lib/temporal/error/workflow_failure.rb', line 10 def initialize(cause:) super @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
8 9 10 |
# File 'lib/temporal/error/workflow_failure.rb', line 8 def cause @cause end |