Exception: Leash::NetworkError
- Defined in:
- lib/leash/errors.rb
Overview
Transport-level failure (DNS, refused connection, timeout, …).
Instance Attribute Summary
Attributes inherited from Error
#action, #cause, #code, #see_also, #status
Instance Method Summary collapse
-
#initialize(message = "Failed to reach the Leash platform.", **opts) ⇒ NetworkError
constructor
A new instance of NetworkError.
Methods inherited from Error
Constructor Details
#initialize(message = "Failed to reach the Leash platform.", **opts) ⇒ NetworkError
Returns a new instance of NetworkError.
99 100 101 102 |
# File 'lib/leash/errors.rb', line 99 def initialize( = "Failed to reach the Leash platform.", **opts) opts[:code] ||= "NETWORK_ERROR" super(, **opts) end |