Exception: DecisionAgent::ReplayMismatchError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expected:, actual:, differences:) ⇒ ReplayMismatchError

Returns a new instance of ReplayMismatchError.



21
22
23
24
25
26
# File 'lib/decision_agent/errors.rb', line 21

def initialize(expected:, actual:, differences:)
  @expected = expected
  @actual = actual
  @differences = differences
  super("Replay mismatch detected: #{differences.join(', ')}")
end

Instance Attribute Details

#actualObject (readonly)

Returns the value of attribute actual.



19
20
21
# File 'lib/decision_agent/errors.rb', line 19

def actual
  @actual
end

#differencesObject (readonly)

Returns the value of attribute differences.



19
20
21
# File 'lib/decision_agent/errors.rb', line 19

def differences
  @differences
end

#expectedObject (readonly)

Returns the value of attribute expected.



19
20
21
# File 'lib/decision_agent/errors.rb', line 19

def expected
  @expected
end