Exception: Bhm::Errors::MissingKey
- Inherits:
-
InvalidHash
- Object
- KeyError
- InvalidHash
- Bhm::Errors::MissingKey
- Defined in:
- lib/bhm/errors.rb
Overview
A required value was not found
Instance Method Summary collapse
-
#initialize(message = nil, receiver:, key:) ⇒ MissingKey
constructor
A new instance of MissingKey.
Methods inherited from InvalidHash
Methods included from Chainable
Constructor Details
#initialize(message = nil, receiver:, key:) ⇒ MissingKey
Returns a new instance of MissingKey.
76 77 78 79 |
# File 'lib/bhm/errors.rb', line 76 def initialize( = nil, receiver:, key:) ||= "could not find key: #{key.inspect}" super(, receiver: receiver, key: key) end |