MCPcopy
hub / github.com/golang-jwt/jwt / joinErrors

Function joinErrors

errors.go:46–50  ·  view source on GitHub ↗

joinErrors joins together multiple errors. Useful for scenarios where multiple errors next to each other occur, e.g., in claims validation.

(errs ...error)

Source from the content-addressed store, hash-verified

44// joinErrors joins together multiple errors. Useful for scenarios where
45// multiple errors next to each other occur, e.g., in claims validation.
46func joinErrors(errs ...error) error {
47 return &joinedError{
48 errs: errs,
49 }
50}
51
52// Unwrap implements the multiple error unwrapping for this error type, which is
53// possible in Go 1.20.

Callers 3

Test_joinErrorsFunction · 0.85
Test_newErrorFunction · 0.85
ValidateMethod · 0.85

Calls

no outgoing calls

Tested by 2

Test_joinErrorsFunction · 0.68
Test_newErrorFunction · 0.68