Exception: Curate::Indexer::Exceptions::CycleDetectionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/curate/indexer/exceptions.rb

Overview

Raised when we may have detected a cycle within the graph

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pid) ⇒ CycleDetectionError

Returns a new instance of CycleDetectionError.



9
10
11
12
# File 'lib/curate/indexer/exceptions.rb', line 9

def initialize(pid)
  @pid = pid
  super "Possible graph cycle discovered related to PID:#{pid}."
end

Instance Attribute Details

#pidObject (readonly)

Returns the value of attribute pid.



8
9
10
# File 'lib/curate/indexer/exceptions.rb', line 8

def pid
  @pid
end