Exception: GraphTraversalException
- Inherits:
-
Exception
- Object
- Exception
- GraphTraversalException
- Defined in:
- lib/graphr/directed_graph.rb
Instance Attribute Summary collapse
-
#link_info ⇒ Object
readonly
Returns the value of attribute link_info.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, links, linkInfo) ⇒ GraphTraversalException
constructor
A new instance of GraphTraversalException.
- #message ⇒ Object (also: #inspect)
Constructor Details
#initialize(node, links, linkInfo) ⇒ GraphTraversalException
Returns a new instance of GraphTraversalException.
23 24 25 26 |
# File 'lib/graphr/directed_graph.rb', line 23 def initialize(node, links, linkInfo) @node, @links, @link_info = node, links, linkInfo super() end |
Instance Attribute Details
#link_info ⇒ Object (readonly)
Returns the value of attribute link_info.
22 23 24 |
# File 'lib/graphr/directed_graph.rb', line 22 def link_info @link_info end |
#links ⇒ Object (readonly)
Returns the value of attribute links.
22 23 24 |
# File 'lib/graphr/directed_graph.rb', line 22 def links @links end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
22 23 24 |
# File 'lib/graphr/directed_graph.rb', line 22 def node @node end |
Instance Method Details
#message ⇒ Object Also known as: inspect
28 29 30 |
# File 'lib/graphr/directed_graph.rb', line 28 def "There is no link from #{@node.inspect} having info #{@link_info.inspect} (valid links are #{@links.inspect})" end |