Class: Glia::Errors::ServiceUnavailableError
- Defined in:
- lib/glia/errors/server_errors.rb
Instance Attribute Summary
Attributes inherited from Error
#error_details, #message, #ref, #type
Instance Method Summary collapse
-
#initialize(message: nil) ⇒ ServiceUnavailableError
constructor
A new instance of ServiceUnavailableError.
Methods inherited from Error
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: || 'Service unavailable' ) end |