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.
52 53 54 |
# File 'lib/nats/io/kv/errors.rb', line 52 def initialize(msg) @msg = msg end |
Instance Method Details
#to_s ⇒ Object
55 56 57 |
# File 'lib/nats/io/kv/errors.rb', line 55 def to_s "nats: #{@msg}" end |