Skip to main content

request_error

Function request_error 

Source
pub fn request_error(err: JmapError) -> RequestError
Expand description

Convenience constructor: wrap a JmapError in a RequestError, deriving the HTTP status code automatically.

ยงRequest-level errors only

Pass only request-level errors (see error_status for the full list). Method-level errors must go through error_invocation instead.