From 5ad676a7ce1800c7dd6e4f97a6eae52e54f74ef1 Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
- TODO: https://go.dev/issue/41198: add ErrUnsupported
-
- TODO: https://go.dev/cl/473935: errors: add ErrUnsupported; modified api/next/41198.txt
+
+ The new
+ Minor changes to the library
@@ -646,7 +648,11 @@ ErrUnsupported
+ error provides a standardized way to indicate that a requested
+ operation may not be performed because it is unsupported.
+ For example, a call to
+ os.Link
when using a
+ file system that does not support hard links.
Minor changes to the library
- TODO: https://go.dev/cl/494122: net/http: let ErrNotSupported match errors.ErrUnsupported; modified api/next/41198.txt
+ The net/http package now supports
+ errors.ErrUnsupported
,
+ in that the expression
+ errors.Is(http.ErrNotSupported, errors.ErrUnsupported)
+ will return true.
+ Several error values match the new
+ errors.ErrUnsupported
,
+ such that errors.Is(err, errors.ErrUnsupported)
+ returns true.
+
ENOSYS
ENOTSUP
EOPNOTSUPP
EPLAN9
(Plan 9 only)ERROR_CALL_NOT_IMPLEMENTED
(Windows only)ERROR_NOT_SUPPORTED
(Windows only)EWINDOWS
(Windows only)