Exception: Temporal::Error::WorkflowFailure

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

Instance Method Summary collapse

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

#causeObject (readonly)

Returns the value of attribute cause.



8
9
10
# File 'lib/temporal/error/workflow_failure.rb', line 8

def cause
  @cause
end