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 ¶
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