Exception: WebPipe::ConnSupport::KeyNotFoundInBagError
- Inherits:
-
KeyError
- Object
- KeyError
- WebPipe::ConnSupport::KeyNotFoundInBagError
- 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
-
#initialize(key) ⇒ KeyNotFoundInBagError
constructor
A new instance of KeyNotFoundInBagError.
Constructor Details
#initialize(key) ⇒ KeyNotFoundInBagError
Returns a new instance of KeyNotFoundInBagError.
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 |