Exception: ChronoMachines::MaxRetriesExceededError
- Defined in:
- lib/chrono_machines/errors.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#original_exception ⇒ Object
readonly
Returns the value of attribute original_exception.
Instance Method Summary collapse
-
#initialize(original_exception, attempts) ⇒ MaxRetriesExceededError
constructor
A new instance of MaxRetriesExceededError.
Constructor Details
#initialize(original_exception, attempts) ⇒ MaxRetriesExceededError
Returns a new instance of MaxRetriesExceededError.
9 10 11 12 13 |
# File 'lib/chrono_machines/errors.rb', line 9 def initialize(original_exception, attempts) @original_exception = original_exception @attempts = attempts super("Max retries (#{attempts}) exceeded. Original error: #{original_exception.class}: #{original_exception.message}") end |
Instance Attribute Details
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts.
7 8 9 |
# File 'lib/chrono_machines/errors.rb', line 7 def attempts @attempts end |
#original_exception ⇒ Object (readonly)
Returns the value of attribute original_exception.
7 8 9 |
# File 'lib/chrono_machines/errors.rb', line 7 def original_exception @original_exception end |