Exception: Resourceful::MissingContentType

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/resourceful/exceptions.rb

Overview

Raised when a body is supplied, but not a content-type header

Instance Method Summary collapse

Constructor Details

#initializeMissingContentType

Returns a new instance of MissingContentType.



29
30
31
# File 'lib/resourceful/exceptions.rb', line 29

def initialize
  super("A Content-Type must be specified when an entity-body is supplied.")
end