Exception: RunApi::Core::ServerError
- Defined in:
- lib/runapi/core/errors.rb
Overview
Raised when server encounters an internal error (HTTP 5xx).
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 = "Server error", **kwargs) ⇒ ServerError
constructor
A new instance of ServerError.
Methods inherited from Error
Constructor Details
#initialize(message = "Server error", **kwargs) ⇒ ServerError
Returns a new instance of ServerError.
241 242 243 |
# File 'lib/runapi/core/errors.rb', line 241 def initialize( = "Server error", **kwargs) super(, status: kwargs.delete(:status) || 500, **kwargs) end |