Exception: Temporalio::Error::WorkflowFailure Private
- Inherits:
-
Temporalio::Error
- Object
- StandardError
- Temporalio::Error
- Temporalio::Error::WorkflowFailure
- Defined in:
- lib/temporalio/error/workflow_failure.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Used as a wrapper to perserve failure hierarchy in nested calls i.e. WorkflowFailure(ActivityError(WorkflowFailure(CancelledError)))
Instance Attribute Summary collapse
- #cause ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(cause:) ⇒ WorkflowFailure
constructor
private
A new instance of WorkflowFailure.
Constructor Details
#initialize(cause:) ⇒ WorkflowFailure
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of WorkflowFailure.
12 13 14 15 16 |
# File 'lib/temporalio/error/workflow_failure.rb', line 12 def initialize(cause:) super @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/temporalio/error/workflow_failure.rb', line 10 def cause @cause end |