Exception: GraphAgent::NodeExecutionError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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.message}")
end

Instance Attribute Details

#node_nameObject (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_errorObject (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