Exception: DilisensePepClient::TimeoutError
- Inherits:
-
NetworkError
- Object
- StandardError
- Error
- NetworkError
- DilisensePepClient::TimeoutError
- Defined in:
- lib/dilisense_pep_client/errors.rb
Overview
Timeout-related errors
Instance Attribute Summary collapse
-
#timeout_duration ⇒ Object
readonly
Returns the value of attribute timeout_duration.
Attributes inherited from Error
#context, #error_code, #request_id, #timestamp
Instance Method Summary collapse
-
#initialize(message, timeout_duration: nil, **options) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
- #retryable? ⇒ Boolean
Methods inherited from Error
Constructor Details
#initialize(message, timeout_duration: nil, **options) ⇒ TimeoutError
Returns a new instance of TimeoutError.
293 294 295 296 297 298 299 300 301 302 |
# File 'lib/dilisense_pep_client/errors.rb', line 293 def initialize(, timeout_duration: nil, **) @timeout_duration = timeout_duration context = { timeout_duration: timeout_duration, timeout_type: determine_timeout_type() }.merge(.fetch(:context, {})) super(, error_code: "TIMEOUT_ERROR", context: context, **) end |
Instance Attribute Details
#timeout_duration ⇒ Object (readonly)
Returns the value of attribute timeout_duration.
291 292 293 |
# File 'lib/dilisense_pep_client/errors.rb', line 291 def timeout_duration @timeout_duration end |
Instance Method Details
#retryable? ⇒ Boolean
304 305 306 |
# File 'lib/dilisense_pep_client/errors.rb', line 304 def retryable? true end |