errors

package
v0.0.0-...-4b22ae8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailFast

func FailFast(errIn error) error

FailFast wraps an error and marks it as needing to fail the worker or master immediately.

func IsFailFastError

func IsFailFastError(errIn error) bool

IsFailFastError tells whether the error is FailFastError.

Types

type FailFastError

type FailFastError struct {
	// contains filtered or unexported fields
}

FailFastError is used internally in the framework to mark the error has needing to fail the worker or master immediately. FailFastError implements Cause() so that it is compatible with `errors` and `pingcap/errors`.

func (*FailFastError) Cause

func (e *FailFastError) Cause() error

Cause implement causer for the error.

func (*FailFastError) Error

func (e *FailFastError) Error() string

func (*FailFastError) Unwrap

func (e *FailFastError) Unwrap() error

Unwrap returns cause of the error. It allows Error to work with errors.Is() and errors.As() from the Go standard package.

Jump to

Keyboard shortcuts

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