Exception: Crm::Errors::NetworkError
- Defined in:
- lib/crm/errors.rb
Overview
NetworkError
is raised if a non-recoverable network-related error occurred (e.g. connection timeout).
Instance Attribute Summary collapse
-
#cause ⇒ Exception
readonly
Returns the underlying network error.
Instance Method Summary collapse
-
#initialize(message = nil, cause = nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message = nil, cause = nil) ⇒ NetworkError
Returns a new instance of NetworkError.
161 162 163 164 165 |
# File 'lib/crm/errors.rb', line 161 def initialize( = nil, cause = nil) super() @cause = cause end |
Instance Attribute Details
#cause ⇒ Exception (readonly)
Returns the underlying network error. E.g. Timeout::Error
159 160 161 |
# File 'lib/crm/errors.rb', line 159 def cause @cause end |