Skip to main content

NodeErrorHandler

Type Alias NodeErrorHandler 

Source
pub type NodeErrorHandler = Arc<dyn Fn(&str, &GraphError, &State) -> Result<NodeOutput> + Send + Sync>;
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 */ }