Exception: Temporalio::Error::ChildWorkflowError

Inherits:
Failure show all
Defined in:
lib/temporalio/error/failure.rb

Overview

Error raised on child workflow failure.

Instance Attribute Summary collapse

Attributes inherited from Failure

#raw

Instance Method Summary collapse

Methods inherited from Failure

#cause

Constructor Details

#initialize(message, namespace:, workflow_id:, run_id:, workflow_name:, initiated_event_id:, started_event_id:, retry_state:, raw: nil, cause: nil) ⇒ ChildWorkflowError

Returns a new instance of ChildWorkflowError.



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/temporalio/error/failure.rb', line 170

def initialize(
  message,
  namespace:,
  workflow_id:,
  run_id:,
  workflow_name:,
  initiated_event_id:,
  started_event_id:,
  retry_state:,
  raw: nil,
  cause: nil
)
  super(message, raw: raw, cause: cause)

  @namespace = namespace
  @workflow_id = workflow_id
  @run_id = run_id
  @workflow_name = workflow_name
  @initiated_event_id = initiated_event_id
  @started_event_id = started_event_id
  @retry_state = retry_state
end

Instance Attribute Details

#initiated_event_idInteger (readonly)

Returns Initiated event ID for this error.

Returns:

  • (Integer)

    Initiated event ID for this error.



162
163
164
# File 'lib/temporalio/error/failure.rb', line 162

def initiated_event_id
  @initiated_event_id
end

#namespaceString (readonly)

Returns Namespace for this error.

Returns:

  • (String)

    Namespace for this error.



150
151
152
# File 'lib/temporalio/error/failure.rb', line 150

def namespace
  @namespace
end

#retry_stateSymbol (readonly)

Returns Retry state for this error. Refer to RetryState.

Returns:

  • (Symbol)

    Retry state for this error. Refer to RetryState.



168
169
170
# File 'lib/temporalio/error/failure.rb', line 168

def retry_state
  @retry_state
end

#run_idString (readonly)

Returns Run ID for this error.

Returns:

  • (String)

    Run ID for this error.



156
157
158
# File 'lib/temporalio/error/failure.rb', line 156

def run_id
  @run_id
end

#started_event_idInteger (readonly)

Returns Started event ID for this error.

Returns:

  • (Integer)

    Started event ID for this error.



165
166
167
# File 'lib/temporalio/error/failure.rb', line 165

def started_event_id
  @started_event_id
end

#workflow_idString (readonly)

Returns Workflow ID for this error.

Returns:

  • (String)

    Workflow ID for this error.



153
154
155
# File 'lib/temporalio/error/failure.rb', line 153

def workflow_id
  @workflow_id
end

#workflow_nameString (readonly)

Returns Workflow name for this error.

Returns:

  • (String)

    Workflow name for this error.



159
160
161
# File 'lib/temporalio/error/failure.rb', line 159

def workflow_name
  @workflow_name
end