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 ¶
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
Click to show internal directories.
Click to hide internal directories.