class Wireless::KeyError
Raised when an attempt is made to:
- retrieve a value from a key-indexed store when the key doesn't exist - write a value when the key exists and the store doesn't allow replacements
Can be passed a message, the receiver the lookup failed on, and the key. All are optional and default to nil.
XXX eventually (i.e. in ruby 2.6), this can be a subclass of (or replaced by) the core KeyError
class: bugs.ruby-lang.org/issues/14313
Attributes
key[R]
receiver[R]
Public Class Methods
new(message = nil, receiver: nil, key: nil)
click to toggle source
Calls superclass method
# File lib/wireless.rb, line 21 def initialize(message = nil, receiver: nil, key: nil) super(message) @receiver = receiver @key = key end