Exception: GraphAgent::NodeExecutionError
- Inherits:
-
GraphError
- Object
- StandardError
- GraphError
- GraphAgent::NodeExecutionError
- Defined in:
- lib/graph_agent/errors.rb
Instance Attribute Summary collapse
-
#node_name ⇒ Object
readonly
Returns the value of attribute node_name.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(node_name, original_error) ⇒ NodeExecutionError
constructor
A new instance of NodeExecutionError.
Constructor Details
#initialize(node_name, original_error) ⇒ NodeExecutionError
Returns a new instance of NodeExecutionError.
22 23 24 25 26 |
# File 'lib/graph_agent/errors.rb', line 22 def initialize(node_name, original_error) @node_name = node_name @original_error = original_error super("Error in node '#{node_name}': #{original_error.}") end |
Instance Attribute Details
#node_name ⇒ Object (readonly)
Returns the value of attribute node_name.
20 21 22 |
# File 'lib/graph_agent/errors.rb', line 20 def node_name @node_name end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
20 21 22 |
# File 'lib/graph_agent/errors.rb', line 20 def original_error @original_error end |