Exception: Crm::Errors::NetworkError

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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, cause = nil) ⇒ NetworkError

Returns a new instance of NetworkError.



162
163
164
165
166
# File 'lib/crm/errors.rb', line 162

def initialize(message = nil, cause = nil)
  super(message)

  @cause = cause
end

Instance Attribute Details

#causeException (readonly)

Returns the underlying network error. E.g. Timeout::Error



160
161
162
# File 'lib/crm/errors.rb', line 160

def cause
  @cause
end