fail

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 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 fail classifies errors as Retryable or Fatal for the chinit retry engine. Fatal errors abort immediately without retrying, whereas other errors are retried according to the active step policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(err error) error

Fatal wraps err as a FatalError. nil maps to nil.

func IsFatal

func IsFatal(err error) bool

IsFatal reports whether err (or anything in its chain) is a FatalError.

Types

type FatalError

type FatalError struct {
	// Step, when set, is the failing step name (filled by the engine).
	Step string
	Err  error
}

FatalError marks an operation whose failure must not be retried: IAM AccessDenied, a SHA256 mismatch, a missing golden-AMI binary. Retrying masks a config bug and burns the boot window.

func (*FatalError) Error

func (e *FatalError) Error() string

func (*FatalError) Unwrap

func (e *FatalError) Unwrap() error

Jump to

Keyboard shortcuts

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