initerror

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package initerror exposes a Permanent error contract for initialization failures that must not be retried. The package is a leaf: it imports nothing project-internal so it can be referenced by both the storage layer (which produces permanent errors) and the metadata-schema retry classifier (which reads them) without introducing a layering edge between those packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsPermanent

func AsPermanent(err error) error

AsPermanent wraps err as a Permanent error. Returns nil if err is nil.

func IsPermanent

func IsPermanent(err error) bool

IsPermanent reports whether err's chain contains a Permanent error.

Types

type Permanent

type Permanent interface {
	error
	Permanent() bool
}

Permanent marks an error as a permanent (non-retriable) initialization failure.

Jump to

Keyboard shortcuts

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