Exception: MediaTypes::Deserialization::ContentDoesNotMatchContentType

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

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ ContentDoesNotMatchContentType

Returns a new instance of ContentDoesNotMatchContentType.



6
7
8
9
# File 'lib/media_types/deserialization/content_does_not_match_content_type.rb', line 6

def initialize(source)
  set_backtrace(source.backtrace)
  super source.message
end