Exception: Temporalio::Error::ApplicationError
- Inherits:
-
Failure
- Object
- StandardError
- Temporalio::Error
- Failure
- Temporalio::Error::ApplicationError
- Defined in:
- lib/temporalio/error/failure.rb
Overview
Error raised during workflow/activity execution.
Instance Attribute Summary collapse
-
#details ⇒ Array<any>
readonly
User-defined details on the error.
-
#non_retryable ⇒ Bool
readonly
Whether the error is non-retryable.
-
#type ⇒ String
readonly
General error type.
Attributes inherited from Failure
Instance Method Summary collapse
-
#initialize(message, type:, details: [], non_retryable: false, raw: nil, cause: nil) ⇒ ApplicationError
constructor
A new instance of ApplicationError.
- #retryable? ⇒ Boolean
Methods inherited from Failure
Constructor Details
#initialize(message, type:, details: [], non_retryable: false, raw: nil, cause: nil) ⇒ ApplicationError
Returns a new instance of ApplicationError.
34 35 36 37 38 39 40 |
# File 'lib/temporalio/error/failure.rb', line 34 def initialize(, type:, details: [], non_retryable: false, raw: nil, cause: nil) super(, raw: raw, cause: cause) @type = type @details = details @non_retryable = non_retryable end |
Instance Attribute Details
#details ⇒ Array<any> (readonly)
Returns User-defined details on the error.
29 30 31 |
# File 'lib/temporalio/error/failure.rb', line 29 def details @details end |
#non_retryable ⇒ Bool (readonly)
Returns Whether the error is non-retryable.
32 33 34 |
# File 'lib/temporalio/error/failure.rb', line 32 def non_retryable @non_retryable end |
#type ⇒ String (readonly)
Returns General error type.
26 27 28 |
# File 'lib/temporalio/error/failure.rb', line 26 def type @type end |
Instance Method Details
#retryable? ⇒ Boolean
42 43 44 |
# File 'lib/temporalio/error/failure.rb', line 42 def retryable? !non_retryable end |