Exception: Temporalio::Error::ServerError
- Inherits:
-
Failure
- Object
- StandardError
- Temporalio::Error
- Failure
- Temporalio::Error::ServerError
- Defined in:
- lib/temporalio/error/failure.rb
Overview
Error originating in the Temporal server.
Instance Attribute Summary collapse
-
#non_retryable ⇒ Bool
readonly
Whether the error is non-retryable.
Attributes inherited from Failure
Instance Method Summary collapse
-
#initialize(message, non_retryable:, raw: nil, cause: nil) ⇒ ServerError
constructor
A new instance of ServerError.
- #retryable? ⇒ Boolean
Methods inherited from Failure
Constructor Details
#initialize(message, non_retryable:, raw: nil, cause: nil) ⇒ ServerError
Returns a new instance of ServerError.
83 84 85 86 87 |
# File 'lib/temporalio/error/failure.rb', line 83 def initialize(, non_retryable:, raw: nil, cause: nil) super(, raw: raw, cause: cause) @non_retryable = non_retryable end |
Instance Attribute Details
#non_retryable ⇒ Bool (readonly)
Returns Whether the error is non-retryable.
81 82 83 |
# File 'lib/temporalio/error/failure.rb', line 81 def non_retryable @non_retryable end |
Instance Method Details
#retryable? ⇒ Boolean
89 90 91 |
# File 'lib/temporalio/error/failure.rb', line 89 def retryable? !non_retryable end |