Skip to main content

provider_error

Function provider_error 

Source
pub fn provider_error(
    ctx: Context,
    code: &str,
    message: String,
) -> PluginExecutionError
Expand description

Prepares the provider-failure response on ctx and wraps it in the Err the graph engine routes through the node’s error port.

code is the plugin’s own error code (e.g. OIDC_PROVIDER_ERROR) — policies, loggers and traces key on it, so it stays per plugin; message is the operational reason and is echoed verbatim (JSON-escaped) in the body so a client or the notification log can show it.