Exception: MediaTypes::Serialization::UnregisteredMediaTypeUsageError

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

Instance Method Summary collapse

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