Exception: NATS::JetStream::Error::ServerError

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

Methods inherited from APIError

#to_s

Constructor Details

#initialize(params = {}) ⇒ ServerError

Returns a new instance of ServerError.



73
74
75
76
# File 'lib/nats/io/jetstream/errors.rb', line 73

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