Class: NATS::JetStream::Error::ServerError

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



1018
1019
1020
1021
# File 'lib/nats/io/js.rb', line 1018

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