Exception: MediaTypes::Serialization::VersionedAliasDefinitionError

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

Instance Method Summary collapse

Constructor Details

#initialize(identifier, inout, prefix_match) ⇒ VersionedAliasDefinitionError

Returns a new instance of VersionedAliasDefinitionError.



92
93
94
95
96
# File 'lib/media_types/serialization/error.rb', line 92

def initialize(identifier, inout, prefix_match)
  super(
    "Serializer tried to define an #{inout}_alias that points to the media type identifier #{identifier} but no such #{inout} has been defined yet. An #{inout} named #{prefix_match} was found. Often this can be fixed by providing an #{inout} with a nil version."
  )
end