Exception: NATS::JetStream::Error::BadRequest
- Inherits:
-
APIError
- Object
- StandardError
- IO::Error
- NATS::JetStream::Error
- APIError
- NATS::JetStream::Error::BadRequest
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/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, #description, #err_code, #seq, #stream
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ BadRequest
constructor
A new instance of BadRequest.
Methods inherited from APIError
Constructor Details
#initialize(params = {}) ⇒ BadRequest
Returns a new instance of BadRequest.
97 98 99 100 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/errors.rb', line 97 def initialize(params={}) super(params) @code ||= 400 end |