Exception: DagMe::CorruptionError

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

Overview

Raised by Graph#validate! when the stored closure disagrees with the recursive-CTE truth. Carries the offending rows.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, discrepancies = []) ⇒ CorruptionError

Returns a new instance of CorruptionError.



23
24
25
26
# File 'lib/dag_me/errors.rb', line 23

def initialize(message, discrepancies = [])
  super(message)
  @discrepancies = discrepancies
end

Instance Attribute Details

#discrepanciesObject (readonly)

Returns the value of attribute discrepancies.



21
22
23
# File 'lib/dag_me/errors.rb', line 21

def discrepancies
  @discrepancies
end