Skip to main content

json_error

Function json_error 

Source
pub fn json_error(code: &str, message: &str) -> ErrorBuilder
Expand description

Fluent builder: start building an error event.

An empty code or message does not panic here; it seeds a deferred BuildError::EmptyRequiredField that is surfaced when ErrorBuilder::build is called.