Exception: MediaTypes::Serialization::DuplicateDefinitionError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- MediaTypes::Serialization::DuplicateDefinitionError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(identifier, inout) ⇒ DuplicateDefinitionError
constructor
A new instance of DuplicateDefinitionError.
Constructor Details
#initialize(identifier, inout) ⇒ DuplicateDefinitionError
Returns a new instance of DuplicateDefinitionError.
100 101 102 |
# File 'lib/media_types/serialization/error.rb', line 100 def initialize(identifier, inout) super("Serializer tried to define an #{inout} using the media type identifier #{identifier}, but another #{inout} was already defined with that identifier. Please remove one of the two.") end |