errcompat

package
v1.0.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL