Exception: Restate::TerminalError
- Inherits:
-
StandardError
- Object
- StandardError
- Restate::TerminalError
- Defined in:
- lib/restate/errors.rb
Overview
Raised to indicate a non-retryable failure. Restate will not retry the invocation.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = 'Internal Server Error', status_code: 500, metadata: nil) ⇒ TerminalError
constructor
A new instance of TerminalError.
Constructor Details
#initialize(message = 'Internal Server Error', status_code: 500, metadata: nil) ⇒ TerminalError
Returns a new instance of TerminalError.
13 14 15 16 17 |
# File 'lib/restate/errors.rb', line 13 def initialize( = 'Internal Server Error', status_code: 500, metadata: nil) super() @status_code = status_code @metadata = end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
11 12 13 |
# File 'lib/restate/errors.rb', line 11 def @metadata end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
11 12 13 |
# File 'lib/restate/errors.rb', line 11 def status_code @status_code end |