Exception: Anakin::NetworkError

Inherits:
Error
  • Object
show all
Defined in:
lib/anakin/errors.rb

Overview

DNS / connect / read-timeout failures from the underlying HTTP client.

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #status

Instance Method Summary collapse

Constructor Details

#initialize(message, cause: nil) ⇒ NetworkError

Returns a new instance of NetworkError.



71
72
73
74
# File 'lib/anakin/errors.rb', line 71

def initialize(message, cause: nil)
  super(message)
  @cause_error = cause
end

Instance Attribute Details

#cause_errorObject (readonly)

Returns the value of attribute cause_error.



69
70
71
# File 'lib/anakin/errors.rb', line 69

def cause_error
  @cause_error
end