Exception: GraphAgent::GraphInterrupt

Inherits:
GraphError
  • Object
show all
Defined in:
lib/graph_agent/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interrupts = []) ⇒ GraphInterrupt

Returns a new instance of GraphInterrupt.



32
33
34
35
# File 'lib/graph_agent/errors.rb', line 32

def initialize(interrupts = [])
  @interrupts = interrupts
  super("Graph interrupted with #{interrupts.length} interrupt(s)")
end

Instance Attribute Details

#interruptsObject (readonly)

Returns the value of attribute interrupts.



30
31
32
# File 'lib/graph_agent/errors.rb', line 30

def interrupts
  @interrupts
end