Exception: GraphTraversalException
- Inherits:
-
Exception
- Object
- Exception
- GraphTraversalException
- Defined in:
- lib/fsm-0.0.0/graph/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.
26 27 28 29 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 26 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.
25 26 27 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 25 def link_info @link_info end |
#links ⇒ Object (readonly)
Returns the value of attribute links.
25 26 27 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 25 def links @links end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
25 26 27 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 25 def node @node end |
Instance Method Details
#message ⇒ Object Also known as: inspect
31 32 33 |
# File 'lib/fsm-0.0.0/graph/directed_graph.rb', line 31 def "There is no link from #{@node.inspect} having info #{@link_info.inspect} (valid links are #{@links.inspect})" end |