Exception: Rager::Errors::TimeoutError
- Inherits:
-
Rager::Error
- Object
- StandardError
- Rager::Error
- Rager::Errors::TimeoutError
- Extended by:
- T::Sig
- Defined in:
- lib/rager/errors/timeout_error.rb
Instance Method Summary collapse
-
#initialize(operation, timeout_seconds: nil, attempts: nil, details: nil) ⇒ TimeoutError
constructor
A new instance of TimeoutError.
Constructor Details
#initialize(operation, timeout_seconds: nil, attempts: nil, details: nil) ⇒ TimeoutError
Returns a new instance of TimeoutError.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rager/errors/timeout_error.rb', line 12 def initialize(operation, timeout_seconds: nil, attempts: nil, details: nil) error_data = { type: "timeout", operation: operation, timeout_seconds: timeout_seconds, attempts: attempts, details: details } super(error_data.to_json) end |