Exception: Temporalio::Error::ChildWorkflowError
- Inherits:
-
Failure
- Object
- StandardError
- Temporalio::Error
- Failure
- Temporalio::Error::ChildWorkflowError
- Defined in:
- lib/temporalio/error/failure.rb
Overview
Error raised on child workflow failure.
Instance Attribute Summary collapse
-
#initiated_event_id ⇒ Integer
readonly
Initiated event ID for this error.
-
#namespace ⇒ String
readonly
Namespace for this error.
-
#retry_state ⇒ Symbol
readonly
Retry state for this error.
-
#run_id ⇒ String
readonly
Run ID for this error.
-
#started_event_id ⇒ Integer
readonly
Started event ID for this error.
-
#workflow_id ⇒ String
readonly
Workflow ID for this error.
-
#workflow_name ⇒ String
readonly
Workflow name for this error.
Attributes inherited from Failure
Instance Method Summary collapse
-
#initialize(message, namespace:, workflow_id:, run_id:, workflow_name:, initiated_event_id:, started_event_id:, retry_state:, raw: nil, cause: nil) ⇒ ChildWorkflowError
constructor
A new instance of ChildWorkflowError.
Methods inherited from Failure
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( , namespace:, workflow_id:, run_id:, workflow_name:, initiated_event_id:, started_event_id:, retry_state:, raw: nil, cause: nil ) super(, 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_id ⇒ Integer (readonly)
Returns 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 |
#namespace ⇒ String (readonly)
Returns Namespace for this error.
150 151 152 |
# File 'lib/temporalio/error/failure.rb', line 150 def namespace @namespace end |
#retry_state ⇒ Symbol (readonly)
Returns 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_id ⇒ String (readonly)
Returns Run ID for this error.
156 157 158 |
# File 'lib/temporalio/error/failure.rb', line 156 def run_id @run_id end |
#started_event_id ⇒ Integer (readonly)
Returns 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_id ⇒ String (readonly)
Returns Workflow ID for this error.
153 154 155 |
# File 'lib/temporalio/error/failure.rb', line 153 def workflow_id @workflow_id end |
#workflow_name ⇒ String (readonly)
Returns Workflow name for this error.
159 160 161 |
# File 'lib/temporalio/error/failure.rb', line 159 def workflow_name @workflow_name end |