Skip to main content

error_envelope

Function error_envelope 

Source
pub fn error_envelope(
    error_type: Option<&str>,
    error_code: Option<&str>,
    message: Option<&str>,
    actor_scope: Option<&str>,
    tenant_scope: Option<&str>,
    details_json: Option<&str>,
) -> Option<String>
Expand description

Performs error envelope.

§Parameters

§Returns

Returns Some when crate::runtime::json_commands::error_envelope can produce a value and None otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::error_envelope.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::error_envelope(todo!(), todo!(), "example", todo!(), todo!(), todo!());