Exception: MediaTypes::Serialization::UnmatchedSerializerError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- MediaTypes::Serialization::UnmatchedSerializerError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(serializer) ⇒ UnmatchedSerializerError
constructor
A new instance of UnmatchedSerializerError.
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 |