Class: NATS::KeyValue::KeyWrongLastSequenceError
- 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
-
#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/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_s ⇒ Object
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 |