Skip to main content

provider_error_message

Function provider_error_message 

Source
pub fn provider_error_message(
    message: &str,
    status: Option<u16>,
    body: Option<&Value>,
    prefix: Option<&str>,
) -> String
Expand description

pi’s formatProviderError: the SDK message, or the status and body when the message does not already include the error body. With a prefix, either form reads <prefix> (<status>): <text>. Without one, a body reads <status>: <body>.