Class: Glia::Errors::ServiceUnavailableError

Inherits:
Error
  • Object
show all
Defined in:
lib/glia/errors/server_errors.rb

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil) ⇒ ServiceUnavailableError

Returns a new instance of ServiceUnavailableError.



17
18
19
20
21
22
23
# File 'lib/glia/errors/server_errors.rb', line 17

def initialize(message: nil)
  super(
    type: SERVICE_UNAVAILABLE_ERROR,
    ref: create_ref(SERVICE_UNAVAILABLE_ERROR),
    message: message || 'Service unavailable'
  )
end