Documentation
¶
Overview ¶
Package errcompat bridges the legacy *core.ConfigError shape into the canonical typed errors taxonomy in errs/. It is a thin boundary helper — placed in its own package so it can import both core (for the legacy type) and errs (for the typed targets) without creating an import cycle with internal/errclass, which intentionally avoids depending on internal/core.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PromoteConfigError ¶
func PromoteConfigError(cfgErr *core.ConfigError) error
PromoteConfigError is the stage-2 boundary helper that will convert a *core.ConfigError into the matching typed errs.* error. In stage 1 it is a passthrough — the dispatcher continues to render *core.ConfigError via the legacy envelope path (cmd/root.go asExitError) so the wire shape stays identical to pre-PR. Per-domain typed migration in stage 2+ will fill in the actual promotion logic alongside its corresponding wire-change announcement.
Types ¶
This section is empty.