Exception: Temporalio::Error::ServerError

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

Overview

Error originating in the Temporal server.

Instance Attribute Summary collapse

Attributes inherited from Failure

#raw

Instance Method Summary collapse

Methods inherited from Failure

#cause

Constructor Details

#initialize(message, non_retryable:, raw: nil, cause: nil) ⇒ ServerError



83
84
85
86
87
# File 'lib/temporalio/error/failure.rb', line 83

def initialize(message, non_retryable:, raw: nil, cause: nil)
  super(message, raw: raw, cause: cause)

  @non_retryable = non_retryable
end

Instance Attribute Details

#non_retryableBool (readonly)



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