Exception: MediaTypes::Errors::KeyExpectationSetError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/media_types/errors.rb

Overview

Raised when trying to set a module key expectation twice

Instance Method Summary collapse

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