Exception: MediaTypes::Serialization::DuplicateUsageError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- MediaTypes::Serialization::DuplicateUsageError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(identifier, inout, serializer1, serializer2) ⇒ DuplicateUsageError
constructor
A new instance of DuplicateUsageError.
Constructor Details
#initialize(identifier, inout, serializer1, serializer2) ⇒ DuplicateUsageError
Returns a new instance of DuplicateUsageError.
106 107 108 |
# File 'lib/media_types/serialization/error.rb', line 106 def initialize(identifier, inout, serializer1, serializer2) super("Controller tried to use two #{inout} serializers (#{serializer1}, #{serializer2}) that both have a non-optional #{inout} defined for the media type identifier #{identifier}. Please remove one of the two or filter them more specifically.") end |