Exception: Walinko::ConnectionError

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

Overview

Raised when we couldn’t reach the API at all (DNS failure, connection refused, TLS handshake failed, socket reset, etc.). These are retried automatically up to ‘max_retries`; if you see one, the retry budget was exhausted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause_class: nil) ⇒ ConnectionError

Returns a new instance of ConnectionError.



15
16
17
18
# File 'lib/walinko/errors.rb', line 15

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

Instance Attribute Details

#cause_classObject (readonly)

Returns the value of attribute cause_class.



13
14
15
# File 'lib/walinko/errors.rb', line 13

def cause_class
  @cause_class
end