Exception: Temporalio::Error::WorkflowFailure Private

Inherits:
Temporalio::Error show all
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

Instance Method Summary collapse

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

#causeObject (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