Skip to main content

envelope

Function envelope 

Source
pub fn envelope(
    code: ErrorCode,
    message: &str,
    correlation_id: Option<&str>,
) -> Value
Expand description

Builds the stable public error envelope returned by runtime and CLI surfaces.

§Parameters

§Returns

Returns the computed value produced by crate::error::envelope.

§Examples

ⓘ
let _result = pharos_runtime_core::error::envelope(todo!(), "example", todo!());
  • crate::error for adjacent helpers that share the same runtime surface.