Exception: WebPipe::ConnSupport::KeyNotFoundInBagError

Inherits:
KeyError
  • Object
show all
Defined in:
lib/web_pipe/conn_support/errors.rb

Overview

Error raised when trying to fetch an entry in WebPipe::Conn#bag for an unknown key.

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ KeyNotFoundInBagError

Returns a new instance of KeyNotFoundInBagError.

Parameters:

  • key (Any)

    Key not found in the bag



9
10
11
12
13
14
15
# File 'lib/web_pipe/conn_support/errors.rb', line 9

def initialize(key)
  super(
    <<~MSG
      Bag does not contain a key with name +#{key}+.
    MSG
  )
end