Exception: GraphAgent::GraphInterrupt
- Inherits:
-
GraphError
- Object
- StandardError
- GraphError
- GraphAgent::GraphInterrupt
- Defined in:
- lib/graph_agent/errors.rb
Instance Attribute Summary collapse
-
#interrupts ⇒ Object
readonly
Returns the value of attribute interrupts.
Instance Method Summary collapse
-
#initialize(interrupts = []) ⇒ GraphInterrupt
constructor
A new instance of GraphInterrupt.
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
#interrupts ⇒ Object (readonly)
Returns the value of attribute interrupts.
30 31 32 |
# File 'lib/graph_agent/errors.rb', line 30 def interrupts @interrupts end |