package
0.0.0-20231018235809-90deddd72f8f
Repository: https://github.com/grailbio/reflow.git
Documentation: pkg.go.dev
# Functions
BaseToReflow interprets base error Kind and Severity to reflow error Kind.
E is used to construct errors.
GetRetryableKinds returns a slice of any retryable error kinds stored in ctx.
Is tells whether an error has a specified kind, except for the indeterminate kind Other.
Match compares err1 with err2.
NonRetryable tells whether error err is likely fatal, and thus not useful to retry.
Recover recovers any error into an *Error.
RecoverError recovers a *Error from the given error, and if is of type: - *Error, it is returned as-is.
Restartable determines if the provided error (must be non-nil) is restartable.
Transient tells whether error err is likely transient, and thus may be usefully retried.
WithRetryableKinds returns a child context of ctx with the given error kinds and any pre-existing ones.
# Constants
Canceled denotes a cancellation error.
DockerExec indicates a reflow exec error.
Eval denotes an evaluation error.
Fatal denotes an unrecoverable error.
Integrity denotes an integrity check error.
Invalid indicates an invalid state or data.
Module indicates a reflow module error.
Net indicates a networking error.
NotAllowed denotes a permissions error.
NotExist denotes an error originating from a nonexistant resource.
NotSupported indicates the operation was not supported.
OOM indicates a out-of-memory error.
Other denotes an unknown error.
Precondition indicates that a precondition was not met.
ResourcesExhausted indicates that there were insufficient resources.
Temporary denotes a transient error.
Timeout denotes a timeout error.
TooManyTries indicates that the operation was retried too many times.
Unavailable denotes that a resource is temporarily unavailable.
# Type aliases
Kind denotes the type of the error.