IsNotFound returns true if the error is a not found error.
(err error)
| 7 | |
| 8 | // IsNotFound returns true if the error is a not found error. |
| 9 | func IsNotFound(err error) bool { |
| 10 | e, ok := err.(NotFound) |
| 11 | return ok && e.NotFound() |
| 12 | } |
| 13 | |
| 14 | // Args is a map of key-value pairs to provide additional context of an error. |
| 15 | type Args map[string]any |