Class: NATS::KeyValue::KeyWrongLastSequenceError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/errors.rb

Overview

When the result is an unexpected sequence.

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ KeyWrongLastSequenceError

Returns a new instance of KeyWrongLastSequenceError.



52
53
54
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/errors.rb', line 52

def initialize(msg)
  @msg = msg
end

Instance Method Details

#to_sObject



55
56
57
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/errors.rb', line 55

def to_s
  "nats: #{@msg}"
end