Class: NATS::JetStream::Error::NotFound
- Inherits:
-
APIError
- Object
- Error
- NATS::JetStream::Error
- APIError
- NATS::JetStream::Error::NotFound
- Defined in:
- lib/nats/io/js.rb
Overview
When a JetStream object was not found. This condition is represented with a message that has 404 status code header.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from APIError
#code, #description, #err_code, #seq, #stream
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ NotFound
constructor
A new instance of NotFound.
Methods inherited from APIError
Constructor Details
#initialize(params = {}) ⇒ NotFound
Returns a new instance of NotFound.
1110 1111 1112 1113 |
# File 'lib/nats/io/js.rb', line 1110 def initialize(params={}) super(params) @code ||= 404 end |