Exception: PoliPage::ConnectionError
- Defined in:
- lib/poli_page/errors.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message:, cause: nil) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #payload_status ⇒ Object
Methods inherited from Error
#auth_error?, #network_error?, #rate_limit_error?, #retryable?, #to_payload, #validation_error?
Constructor Details
#initialize(message:, cause: nil) ⇒ ConnectionError
Returns a new instance of ConnectionError.
95 96 97 98 |
# File 'lib/poli_page/errors.rb', line 95 def initialize(message:, cause: nil) super(, code: "network_error", status: nil, request_id: nil) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
93 94 95 |
# File 'lib/poli_page/errors.rb', line 93 def cause @cause end |
Instance Method Details
#payload_status ⇒ Object
100 101 102 |
# File 'lib/poli_page/errors.rb', line 100 def payload_status 503 end |