MCPcopy Create free account
hub / github.com/Keats/jsonwebtoken / new_error

Function new_error

src/errors.rs:8–10  ·  view source on GitHub ↗

A constructor for `Error`. Intended for use in custom crypto providers.

(kind: ErrorKind)

Source from the content-addressed store, hash-verified

6/// A constructor for `Error`.
7/// Intended for use in custom crypto providers.
8pub fn new_error(kind: ErrorKind) -> Error {
9 Error(Box::new(kind))
10}
11
12/// A type alias for `Result<T, jsonwebtoken::errors::Error>`.
13pub type Result<T> = result::Result<T, Error>;

Callers 9

fromMethod · 0.85
decodeFunction · 0.85
verify_signature_bodyFunction · 0.85
encodeFunction · 0.85
validateFunction · 0.85
encodeFunction · 0.85
try_fromMethod · 0.85
newMethod · 0.85
newMethod · 0.85

Calls 1

ErrorClass · 0.85

Tested by

no test coverage detected