Exception: Restate::TimeoutError

Inherits:
TerminalError show all
Defined in:
lib/restate/errors.rb

Overview

Raised by DurableFuture#or_timeout when the timeout elapses before the future completes. Mirrors TimeoutError in the TypeScript SDK (408 Request Timeout) and TimeoutException in the Java SDK. Inherits from TerminalError so the same rescue Restate::TerminalError block in user handlers catches timeouts alongside other terminal failures.

Instance Attribute Summary

Attributes inherited from TerminalError

#metadata, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Timeout occurred', metadata: nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



27
28
29
# File 'lib/restate/errors.rb', line 27

def initialize(message = 'Timeout occurred', metadata: nil)
  super(message, status_code: 408, metadata: )
end