errors

package
v0.0.0-rc12 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

errors

errors is the collection of error types that can be used by any submodule of the Transfer and are recognised by its common components.

Currently, not all such errors are stored here — a prominent example is abstract.FatalError.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnspecifiedCode = coded.Register("unspecified")
)

Functions

func CategorizedErrorf

func CategorizedErrorf(category categories.Category, format string, a ...any) error

CategorizedErrorf produces a xerrors-wrapped error with a given assigned category

func EqualCauses

func EqualCauses(a error, b error) bool

EqualCauses checks if two errors have the same cause. This is determined by an heuristic defined in this function.

func NewStatusMessageError

func NewStatusMessageError(msg *coordinator.StatusMessage) error

func ToTransferStatusMessage

func ToTransferStatusMessage(err error) *coordinator.StatusMessage

Types

type Categorized

type Categorized interface {
	error
	xerrors.Wrapper

	Category() categories.Category
}

Categorized is an error with an attached category

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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