pub type NodeErrorHandler = Arc<dyn Fn(&str, &GraphError, &HashMap<String, Value>) -> Result<NodeOutput, GraphError> + Send + Sync>;Available on crate feature
graph only.Expand description
Turns a node failure into state and a route, instead of ending the run.
Called after the node’s retry budget is spent. Returning a
crate::node::NodeOutput lets the handler record what happened
and name a recovery node with
with_goto. Returning Err ends the
run as before.
Aliased Type§
pub struct NodeErrorHandler { /* private fields */ }