pub fn envelope(
code: ErrorCode,
message: &str,
correlation_id: Option<&str>,
) -> ValueExpand description
Builds the stable public error envelope returned by runtime and CLI surfaces.
§Parameters
code: Input consumed bycrate::error::envelope.message: Input consumed bycrate::error::envelope.correlation_id: Input consumed bycrate::error::envelope.
§Returns
Returns the computed value produced by crate::error::envelope.
§Examples
ⓘ
let _result = pharos_runtime_core::error::envelope(todo!(), "example", todo!());§Related
crate::errorfor adjacent helpers that share the same runtime surface.