Exception: RunApi::Core::NetworkError
- Defined in:
- lib/runapi/core/errors.rb
Overview
Raised when network connection fails or request cannot be sent.
Constant Summary
Constants inherited from Error
Error::DEFAULT_MESSAGES, Error::STATUS_MAP
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #request_id, #response_headers, #status
Instance Method Summary collapse
-
#initialize(message = "Network error", **kwargs) ⇒ NetworkError
constructor
A new instance of NetworkError.
Methods inherited from Error
from_response, #response_header, #runapi_task_id, #to_h
Constructor Details
#initialize(message = "Network error", **kwargs) ⇒ NetworkError
Returns a new instance of NetworkError.
240 241 242 243 |
# File 'lib/runapi/core/errors.rb', line 240 def initialize( = "Network error", **kwargs) kwargs[:code] = "network" unless kwargs.key?(:code) super end |