Exception: NumerousNetworkError
- Inherits:
-
NumerousError
- Object
- StandardError
- NumerousError
- NumerousNetworkError
- Defined in:
- lib/numerousapp.rb
Overview
A NumerousNetworkError occurs when there is a “somewhat normal” network error. The library catches the lower level exceptions that normally happen when the network is down or the HTTP connection times out and translates those into this exception so you can rescue this without being exposed to all the details of the lower-level networking exceptions.
Instance Attribute Summary
Attributes inherited from NumerousError
Instance Method Summary collapse
-
#initialize(xc) ⇒ NumerousNetworkError
constructor
A new instance of NumerousNetworkError.
Constructor Details
#initialize(xc) ⇒ NumerousNetworkError
Returns a new instance of NumerousNetworkError.
85 86 87 |
# File 'lib/numerousapp.rb', line 85 def initialize(xc) super("Network Error", -1, { :netException => xc }) end |