Exception: MediaTypes::Serialization::UnsupportedMediaTypeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/media_types/serialization/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(available) ⇒ UnsupportedMediaTypeError

Returns a new instance of UnsupportedMediaTypeError.



46
47
48
# File 'lib/media_types/serialization/error.rb', line 46

def initialize(available)
  super("The controller was unable to process your Content-Type. Please use one of: [#{available.join(', ')}]")
end