Exception: MediaTypes::Errors::KeyExpectationSetError
- Inherits:
-
StandardError
- Object
- StandardError
- MediaTypes::Errors::KeyExpectationSetError
- Defined in:
- lib/media_types/errors.rb
Overview
Raised when trying to set a module key expectation twice
Instance Method Summary collapse
-
#initialize(mod:) ⇒ KeyExpectationSetError
constructor
A new instance of KeyExpectationSetError.
Constructor Details
#initialize(mod:) ⇒ KeyExpectationSetError
Returns a new instance of KeyExpectationSetError.
7 8 9 |
# File 'lib/media_types/errors.rb', line 7 def initialize(mod:) super(format('%<mod>s already has a key expectation set', mod: mod.name)) end |