Exception: MisarReach::NetworkError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/misar_reach/errors.rb

Overview

Connectivity failure — no HTTP response received.

Instance Attribute Summary

Attributes inherited from ApiError

#body, #code, #retry_after, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ NetworkError

Returns a new instance of NetworkError.



83
84
85
86
# File 'lib/misar_reach/errors.rb', line 83

def initialize(message, cause = nil)
  super(0, message, code: "network_error")
  @cause = cause
end