Exception: JPie::Errors::UnsupportedMediaTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/jpie/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #detail, #source, #status, #title

Instance Method Summary collapse

Methods inherited from Error

#to_hash

Constructor Details

#initialize(detail: 'Unsupported Media Type') ⇒ UnsupportedMediaTypeError

Returns a new instance of UnsupportedMediaTypeError.



59
60
61
# File 'lib/jpie/errors.rb', line 59

def initialize(detail: 'Unsupported Media Type')
  super(status: 415, title: 'Unsupported Media Type', detail:)
end