Exception: Walinko::ConnectionError
- 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
-
#cause_class ⇒ Object
readonly
Returns the value of attribute cause_class.
Instance Method Summary collapse
-
#initialize(message, cause_class: nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
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(, cause_class: nil) super() @cause_class = cause_class end |
Instance Attribute Details
#cause_class ⇒ Object (readonly)
Returns the value of attribute cause_class.
13 14 15 |
# File 'lib/walinko/errors.rb', line 13 def cause_class @cause_class end |