Exception: Restate::TimeoutError
- Inherits:
-
TerminalError
- Object
- StandardError
- TerminalError
- Restate::TimeoutError
- 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
Instance Method Summary collapse
-
#initialize(message = 'Timeout occurred', metadata: nil) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
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( = 'Timeout occurred', metadata: nil) super(, status_code: 408, metadata: ) end |