joinErrors joins together multiple errors. Useful for scenarios where multiple errors next to each other occur, e.g., in claims validation.
(errs ...error)
| 44 | // joinErrors joins together multiple errors. Useful for scenarios where |
| 45 | // multiple errors next to each other occur, e.g., in claims validation. |
| 46 | func 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. |
no outgoing calls