Exception: MediaTypes::Serialization::UnregisteredMediaTypeUsageError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- MediaTypes::Serialization::UnregisteredMediaTypeUsageError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(identifier, available) ⇒ UnregisteredMediaTypeUsageError
constructor
A new instance of UnregisteredMediaTypeUsageError.
Constructor Details
#initialize(identifier, available) ⇒ UnregisteredMediaTypeUsageError
Returns a new instance of UnregisteredMediaTypeUsageError.
112 113 114 |
# File 'lib/media_types/serialization/error.rb', line 112 def initialize(identifier, available) super("A serialization or deserialization method was called using a media type identifier '#{identifier}' but no such identifier has been registered yet. Available media types: [#{available.join ', '}]") end |