Tags give the ability to mark specific points in history as being important
-
v0.7.1
33aa65a1 · ·ctxerrors v0.7.1 — rewrite the commerr package comment The old comment implied commerr was the only vocabulary SetErrorMap can target and framed the sentinels as 'shared across services'. The new comment describes them as general-purpose sentinels any Go code can return and match with errors.Is. No code changed.
-
v0.7.0
0d4bf37d · ·ctxerrors v0.7.0 — remove HTTP-specific ErrUnexpectedHTTPStatusCode commerr holds transport-agnostic sentinels; an HTTP-status error is not one, so ErrUnexpectedHTTPStatusCode is removed (61 -> 60). Define HTTP-status sentinels in an HTTP package instead (aichteeteapee has ErrUnexpectedResponseStatus). Rate-limit and auth sentinels stay -- they are not HTTP-only. Breaking.
-
v0.6.0
4262d833 · ·ctxerrors v0.6.0 — 16 more general-purpose commerr sentinels commerr grows from 45 to 61 sentinels: ErrReadFailed/ErrOpenFailed/ErrCloseFailed/ ErrExecFailed, ErrNotImplemented/ErrUnsupported, ErrValidationFailed/ErrOutOfRange, ErrClosed/ErrNotReady/ErrInvalidState/ErrExpired, ErrLockHeld/ErrConflict/ ErrExhausted, and ErrPermissionDenied. All transport- and domain-agnostic, plain errors.New values matched with errors.Is. Nothing existing changed.
-
v0.5.0
8f38edf9 · ·ctxerrors v0.5.0 — add the commerr sentinel subpackage commerr holds the shared common sentinel errors (ErrNotFound, ErrAlreadyExists, ErrFetchFailed, ErrTimeout, and the rest) that SetErrorMap translates into -- previously only in common-go/errors. Plain errors.New values, matched with errors.Is through any Wrap depth. A subpackage, so wrapping-only consumers do not compile it. common-go/errors becomes a deprecated re-export of these.
-
v0.4.5
f3fc3a19 · ·ctxerrors v0.4.5 — correct the return-value claim The README said all functions return a *CTXError. SetErrorMap, MapError and ClearErrorMap return nothing; only New, Wrap, Wrapf and Join return an error. No code changed.
-
v0.4.4
92dbfcfb · ·ctxerrors v0.4.4 — imported-by badge, refreshed weekly CI only; the library is unchanged. The README gains a count of importing packages linking to the list of repositories behind it. Useful here because the naive signals mislead: no stars, no external importers, but ~17 of my own modules import this one. The number is a blast-radius indicator for changes, not adoption.
-
-
-
-
-
-
-
-
v0.3.0
110707d2 · ·v0.3.0 — error mapping layer New public API: - SetErrorMap(map[error]error) — replace the global translation map - MapError(from, to error) — add/overwrite a single mapping - ClearErrorMap() — wipe the map (mostly for tests) Wrap/Wrapf translate the underlying error via errors.Is before wrapping. Backwards compatible: empty map = unchanged behavior.
-
v0.2.3
cca8950a · ·- removed external logrus dependency - use stdlib log/slog for nil error warnings - no API changes
-
-
-
-