Class: Glia::Errors::ServiceUnavailableError
- Defined in:
- lib/glia/errors/server_errors.rb
Constant Summary
Constants inherited from Error
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: "https://example.com/errors/#{SERVICE_UNAVAILABLE_ERROR}.html", message: || 'Service unavailable' ) end |