initerror

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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