Exception: MediaTypes::Deserialization::ContentTypeNotRecognised

Inherits:
Error
  • Object
show all
Defined in:
lib/media_types/deserialization/content_type_not_recognised.rb

Instance Method Summary collapse

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