Class: RubyReactor::MaxRetriesExhaustedFailure

Inherits:
Failure
  • Object
show all
Defined in:
lib/ruby_reactor/max_retries_exhausted_failure.rb

Instance Attribute Summary collapse

Attributes inherited from Failure

#backtrace, #error, #inputs, #reactor_name, #retryable, #step_arguments, #step_name

Instance Method Summary collapse

Methods inherited from Failure

#failure?, #message, #retryable?, #success?, #to_s

Constructor Details

#initialize(message, step:, attempts:, original_error: nil, inputs: {}, backtrace: nil, redact_inputs: [], reactor_name: nil, step_arguments: {}) ⇒ MaxRetriesExhaustedFailure

rubocop:disable Metrics/ParameterLists



8
9
10
11
12
13
14
15
16
17
# File 'lib/ruby_reactor/max_retries_exhausted_failure.rb', line 8

def initialize(message, step:, attempts:, original_error: nil,
               inputs: {}, backtrace: nil, redact_inputs: [],
               reactor_name: nil, step_arguments: {})
  # rubocop:enable Metrics/ParameterLists
  super(message,
        step_name: step, inputs: inputs, backtrace: backtrace,
        redact_inputs: redact_inputs, reactor_name: reactor_name, step_arguments: step_arguments)
  @attempts = attempts
  @original_error = original_error
end

Instance Attribute Details

#attemptsObject (readonly)

Returns the value of attribute attempts.



5
6
7
# File 'lib/ruby_reactor/max_retries_exhausted_failure.rb', line 5

def attempts
  @attempts
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



5
6
7
# File 'lib/ruby_reactor/max_retries_exhausted_failure.rb', line 5

def original_error
  @original_error
end