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.

Panics if code or message is empty (required by protocol contract).