Exception: Doze::ClientResourceError

Inherits:
ClientError show all
Defined in:
lib/doze/error.rb

Overview

Can be used for any error at the resource level which is caused by client error. Should relate to a problem processing the resource-level semantics of a request, rather than a syntactic error in a submitted entity representation. see tools.ietf.org/html/rfc4918#section-11.2

Instance Attribute Summary

Attributes inherited from Error

#headers, #http_status

Instance Method Summary collapse

Methods inherited from Error

#backtrace

Constructor Details

#initialize(message = nil) ⇒ ClientResourceError

Returns a new instance of ClientResourceError.



42
43
44
# File 'lib/doze/error.rb', line 42

def initialize(message=nil)
  super(Doze::Utils::STATUS_UNPROCESSABLE_ENTITY, message)
end