Exception: Doze::ResourceUnavailableError

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

Overview

The resource might exist, but for some reason the requested operation can not be performed at this moment in time. This type of error would indicate that this is a temporary situation and is due, like the error says, to the resource, or some dependency of it, being unavailable. This translates to a 503, innit.

Instance Attribute Summary

Attributes inherited from Error

#headers, #http_status

Instance Method Summary collapse

Methods inherited from Error

#backtrace

Constructor Details

#initialize(message = nil) ⇒ ResourceUnavailableError

Returns a new instance of ResourceUnavailableError.



71
72
73
# File 'lib/doze/error.rb', line 71

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