Exception: MediaTypes::Serialization::UnmatchedSerializerError

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

Instance Method Summary collapse

Constructor Details

#initialize(serializer) ⇒ UnmatchedSerializerError

Returns a new instance of UnmatchedSerializerError.



118
119
120
# File 'lib/media_types/serialization/error.rb', line 118

def initialize(serializer)
  super("Called render_media with a resolved serializer that was not specified in the do block. Please add a 'serializer #{serializer.name}, <value>' entry.")
end