Exception: NATS::JetStream::Error::BadRequest

Inherits:
APIError show all
Defined in:
lib/nats/io/jetstream/errors.rb

Overview

When the JetStream client makes an invalid request. This condition is represented with a message that has 400 status code header.

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 = {}) ⇒ BadRequest

Returns a new instance of BadRequest.



113
114
115
116
# File 'lib/nats/io/jetstream/errors.rb', line 113

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