Skip to main content

finalize_errors

Function finalize_errors 

Source
pub fn finalize_errors(
    errors: &mut [ServerError],
    mask: bool,
    parsed: bool,
) -> Vec<String>
Expand description

Post-process a response’s errors: give every error a code, and mask unexpected execution errors when mask is on.

parsed says whether the document parsed; it decides whether an uncoded pre-execution error is a parse or a validation failure. Returns the codes of every error, for metrics.