Class: NATS::KeyValue::KeyWrongLastSequenceError
- Defined in:
- lib/nats/io/kv/errors.rb
Overview
When the result is an unexpected sequence.
Instance Method Summary collapse
-
#initialize(msg) ⇒ KeyWrongLastSequenceError
constructor
A new instance of KeyWrongLastSequenceError.
- #to_s ⇒ Object
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_s ⇒ Object
58 59 60 |
# File 'lib/nats/io/kv/errors.rb', line 58 def to_s "nats: #{@msg}" end |