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