Exception: ChronoMachines::MaxRetriesExceededError

Inherits:
Error
  • Object
show all
Defined in:
lib/chrono_machines/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attemptsObject (readonly)

Returns the value of attribute attempts.



7
8
9
# File 'lib/chrono_machines/errors.rb', line 7

def attempts
  @attempts
end

#original_exceptionObject (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