You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Forward compatibility" above refers to the ability of this library to
52
53
recognize and properly handle network communication of error types it
@@ -61,6 +62,8 @@ older version of the package.
61
62
- test error identity with `errors.Is()` as usual.
62
63
**Unique in this library**: this works even if the error has traversed the network!
63
64
Also, `errors.IsAny()` to recognize two or more reference errors.
65
+
- replace uses of `os.IsPermission()`, `os.IsTimeout()`, `os.IsExist()` and `os.IsNotExist()` by their analog in sub-package `oserror` so
66
+
that they can peek through layers of wrapping.
64
67
- access error causes with `errors.UnwrapOnce()` / `errors.UnwrapAll()` (note: `errors.Cause()` and `errors.Unwrap()` also provided for compatibility with other error packages).
65
68
- encode/decode errors to protobuf with `errors.EncodeError()` / `errors.DecodeError()`.
66
69
- extract **PII-free safe details** with `errors.GetSafeDetails()`.
0 commit comments