Exception: RunApi::Core::ServiceUnavailableError

Inherits:
Error
  • Object
show all
Defined in:
lib/runapi/core/errors.rb

Overview

Raised when service is temporarily unavailable (HTTP 503).

Constant Summary

Constants inherited from Error

Error::DEFAULT_MESSAGES, Error::STATUS_MAP

Instance Attribute Summary

Attributes inherited from Error

#details, #request_id, #status

Instance Method Summary collapse

Methods inherited from Error

from_response, #to_h

Constructor Details

#initialize(message = "Service unavailable", **kwargs) ⇒ ServiceUnavailableError

Returns a new instance of ServiceUnavailableError.



199
200
201
# File 'lib/runapi/core/errors.rb', line 199

def initialize(message = "Service unavailable", **kwargs)
  super(message, status: kwargs.delete(:status) || 503, **kwargs)
end