Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailFast ¶
FailFast wraps an error and marks it as needing to fail the worker or master immediately.
func IsFailFastError ¶
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.
Click to show internal directories.
Click to hide internal directories.