Exception: NATS::JetStream::Error::ServerError
- Inherits:
-
APIError
- Object
- StandardError
- IO::Error
- NATS::JetStream::Error
- APIError
- NATS::JetStream::Error::ServerError
- Defined in:
- lib/nats/io/jetstream/errors.rb
Overview
When there is a hard failure in the JetStream. This condition is represented with a message that has 500 status code header.
Instance Attribute Summary
Attributes inherited from APIError
#code, #description, #err_code, #seq, #stream
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ServerError
constructor
A new instance of ServerError.
Methods inherited from APIError
Constructor Details
#initialize(params = {}) ⇒ ServerError
Returns a new instance of ServerError.
73 74 75 76 |
# File 'lib/nats/io/jetstream/errors.rb', line 73 def initialize(params={}) super(params) @code ||= 500 end |