Class: NATS::KeyValue::KeyWrongLastSequenceError

Inherits:
Error
  • Object
show all
Defined in:
lib/nats/io/kv.rb

Overview

When the result is an unexpected sequence.

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ KeyWrongLastSequenceError



66
67
68
# File 'lib/nats/io/kv.rb', line 66

def initialize(msg)
  @msg = msg
end

Instance Method Details

#to_sObject



69
70
71
# File 'lib/nats/io/kv.rb', line 69

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