Class: NATS::KeyValue::KeyWrongLastSequenceError

Inherits:
Error
  • Object
show all
Defined in:
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.



54
55
56
# File 'lib/nats/io/kv/errors.rb', line 54

def initialize(msg)
  @msg = msg
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/nats/io/kv/errors.rb', line 58

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