Exception: MediaTypes::Scheme::StringOverwritingSymbolError
- Inherits:
-
DuplicateKeyError
- Object
- ArgumentError
- DuplicateKeyError
- MediaTypes::Scheme::StringOverwritingSymbolError
- Defined in:
- lib/media_types/scheme/errors.rb
Constant Summary collapse
- MESSAGE_TEMPLATE =
'Trying to add %<rule_type>s rule String key %<key>s while a Symbol with the same name already exists. Please remove one of the two.'
Instance Method Summary collapse
-
#initialize(rule_type, key) ⇒ StringOverwritingSymbolError
constructor
A new instance of StringOverwritingSymbolError.
Constructor Details
#initialize(rule_type, key) ⇒ StringOverwritingSymbolError
Returns a new instance of StringOverwritingSymbolError.
35 36 37 |
# File 'lib/media_types/scheme/errors.rb', line 35 def initialize(rule_type, key) super(format(MESSAGE_TEMPLATE, { rule_type: rule_type, key: key })) end |