Exception: NATS::JetStream::Error::NotFound

Inherits:
APIError show all
Defined in:
lib/nats/io/jetstream/errors.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

ConsumerNotFound, StreamNotFound

Instance Attribute Summary

Attributes inherited from APIError

#code, #consumer, #description, #err_code, #seq, #stream

Instance Method Summary collapse

Methods inherited from APIError

#to_s

Constructor Details

#initialize(params = {}) ⇒ NotFound

Returns a new instance of NotFound.



90
91
92
93
# File 'lib/nats/io/jetstream/errors.rb', line 90

def initialize(params = {})
  super
  @code ||= 404
end