Class: NATS::JetStream::Error::ServerError
- Inherits:
-
APIError
- Object
- Error
- NATS::JetStream::Error
- APIError
- NATS::JetStream::Error::ServerError
- Defined in:
- lib/nats/io/js.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.
1018 1019 1020 1021 |
# File 'lib/nats/io/js.rb', line 1018 def initialize(params={}) super(params) @code ||= 500 end |