Skip to main content

error_item

Function error_item 

Source
pub fn error_item(ns: &str, e: &PlexusError) -> Value
Expand description

AUTH-2: the error stream item a failed dispatch of ns.call sends for e, as JSON — {"type":"error","metadata","message","code", "recoverable"} plus, for an auth refusal, error_kind and (a missing grant) grant, scope, roles, held_on. Public so a transport that renders dispatch errors itself renders them the same way.