Exception: MediaTypes::Errors::KeyExpectationUsedError
- Inherits:
-
StandardError
- Object
- StandardError
- MediaTypes::Errors::KeyExpectationUsedError
- Defined in:
- lib/media_types/errors.rb
Overview
Raised when trying to set a module key expectation while default expectation already used
Instance Method Summary collapse
-
#initialize(mod:) ⇒ KeyExpectationUsedError
constructor
A new instance of KeyExpectationUsedError.
Constructor Details
#initialize(mod:) ⇒ KeyExpectationUsedError
Returns a new instance of KeyExpectationUsedError.
14 15 16 |
# File 'lib/media_types/errors.rb', line 14 def initialize(mod:) super(format('Unable to change key type expectation for %<mod>s since its current expectation is already used', mod: mod.name)) end |