Exception: RunApi::Core::ServiceUnavailableError
- 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
-
#initialize(message = "Service unavailable", **kwargs) ⇒ ServiceUnavailableError
constructor
A new instance of ServiceUnavailableError.
Methods inherited from Error
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( = "Service unavailable", **kwargs) super(, status: kwargs.delete(:status) || 503, **kwargs) end |