Exception: Eluvia::Errors::ServiceUnavailable

Inherits:
StandardError show all
Defined in:
lib/eluvia/errors/service_unavailable.rb

Instance Attribute Summary

Attributes inherited from StandardError

#error, #message, #no_sentry, #source, #status, #timestamp

Instance Method Summary collapse

Methods inherited from StandardError

#to_h, #to_s

Constructor Details

#initialize(message = nil) ⇒ ServiceUnavailable

Returns a new instance of ServiceUnavailable.



5
6
7
8
9
10
11
12
13
# File 'lib/eluvia/errors/service_unavailable.rb', line 5

def initialize(message = nil)
  super(
    message || "The server cannot handle the request (because it is overloaded or down for maintenance).",
    "Service Unavailable",
    503,
    nil,
    false
  )
end