Exception: Leash::NetworkError

Inherits:
Error
  • Object
show all
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

Methods inherited from Error

#connect_url, #message, #to_s

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(message = "Failed to reach the Leash platform.", **opts)
  opts[:code] ||= "NETWORK_ERROR"
  super(message, **opts)
end