Exception: MediaTypes::Serialization::MultipleSelfLinksProvidedError

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

Instance Method Summary collapse

Constructor Details

#initialize(media_type_identifier) ⇒ MultipleSelfLinksProvidedError

Returns a new instance of MultipleSelfLinksProvidedError.



147
148
149
# File 'lib/media_types/serialization/error.rb', line 147

def initialize(media_type_identifier)
  super("Tried to render an index of '#{media_type_identifier}' elements but the serializer returned more than one :self link. Please make sure to only call 'link rel: :self, ...' once in the #{media_type_identifier} serializer.")
end