Exception: WebPipe::ConnSupport::KeyNotFoundInConfigError

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

Overview

Error raised when trying to fetch an entry in WebPipeConn#config for an unknown key.

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ KeyNotFoundInConfigError

Returns a new instance of KeyNotFoundInConfigError.

Parameters:

  • key (Any)

    Key not found in config



22
23
24
25
26
27
28
# File 'lib/web_pipe/conn_support/errors.rb', line 22

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