Exception: HalApi::Errors::UnsupportedMediaType

Inherits:
ApiError
  • Object
show all
Defined in:
lib/hal_api/errors.rb

Instance Attribute Summary

Attributes inherited from ApiError

#hint, #status

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ UnsupportedMediaType

Returns a new instance of UnsupportedMediaType.



29
30
31
# File 'lib/hal_api/errors.rb', line 29

def initialize(type)
  super("Unsupported Media Type '#{type.inspect}'", 415)
end