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.
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = 'Internal Server Error', status_code: 500) ⇒ TerminalError
constructor
A new instance of TerminalError.
Constructor Details
#initialize(message = 'Internal Server Error', status_code: 500) ⇒ TerminalError
Returns a new instance of TerminalError.
12 13 14 15 |
# File 'lib/restate/errors.rb', line 12 def initialize( = 'Internal Server Error', status_code: 500) super() @status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
10 11 12 |
# File 'lib/restate/errors.rb', line 10 def status_code @status_code end |