Function server_error

Source
pub fn server_error(e: &ExplorerdError, id: u16, msg: Option<&str>) -> JsonError
Expand description

Constructs a JsonError representing a server error using the provided ExplorerdError , request ID, and optional custom message, returning a JsonError with a corresponding server error code and message.