Exception: MediaTypes::Serialization::DuplicateDefinitionError

Inherits:
ConfigurationError show all
Defined in:
lib/media_types/serialization/error.rb

Instance Method Summary collapse

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