Exception: MediaTypes::Deserialization::ContentTypeNotRecognised
- Inherits:
-
Error
- Object
- RuntimeError
- Error
- MediaTypes::Deserialization::ContentTypeNotRecognised
- Defined in:
- lib/media_types/deserialization/content_type_not_recognised.rb
Instance Method Summary collapse
-
#initialize(content_type) ⇒ ContentTypeNotRecognised
constructor
A new instance of ContentTypeNotRecognised.
Constructor Details
#initialize(content_type) ⇒ ContentTypeNotRecognised
Returns a new instance of ContentTypeNotRecognised.
6 7 8 9 10 11 |
# File 'lib/media_types/deserialization/content_type_not_recognised.rb', line 6 def initialize(content_type) super format( 'The Content-Type: %<content_type>s is not recognised or supported', content_type: content_type ) end |