Exception: Temporalio::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Temporalio::Error
- Defined in:
- lib/temporalio/error.rb,
lib/temporalio/error/failure.rb
Overview
Superclass for all Temporal errors
Direct Known Subclasses
Activity::CompleteAsyncError, Converters::PayloadConverter::Composite::ConverterNotFound, Converters::PayloadConverter::Composite::EncodingNotSet, AsyncActivityCanceledError, Failure, RPCError, WorkflowContinuedAsNewError, WorkflowFailedError, WorkflowQueryFailedError, WorkflowQueryRejectedError, WorkflowUpdateFailedError, WorkflowUpdateRPCTimeoutOrCanceledError, Internal::Worker::MultiRunner::InjectEventForTesting
Defined Under Namespace
Modules: RetryState Classes: ActivityError, ApplicationError, AsyncActivityCanceledError, CanceledError, ChildWorkflowError, Failure, RPCError, ServerError, TerminatedError, TimeoutError, WorkflowAlreadyStartedError, WorkflowContinuedAsNewError, WorkflowFailedError, WorkflowQueryFailedError, WorkflowQueryRejectedError, WorkflowUpdateFailedError, WorkflowUpdateRPCTimeoutOrCanceledError
Class Method Summary collapse
-
.canceled?(error) ⇒ Boolean
Whether the error represents some form of cancellation from an activity or workflow.
Class Method Details
.canceled?(error) ⇒ Boolean
Whether the error represents some form of cancellation from an activity or workflow.
12 13 14 15 16 |
# File 'lib/temporalio/error.rb', line 12 def self.canceled?(error) error.is_a?(CanceledError) || (error.is_a?(ActivityError) && error.cause.is_a?(CanceledError)) || (error.is_a?(ChildWorkflowError) && error.cause.is_a?(CanceledError)) end |