cond

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Closed

func Closed(message string) error

func Conflict

func Conflict(category string, element any) error

func Corruption

func Corruption(category string, message string, args ...any) error

func Error

func Error(str string) error

func Errorf

func Errorf(format string, args ...any) error

func IsWorkload added in v0.17.0

func IsWorkload(err error) bool

IsWorkload reports whether anything in err's chain was marked by Workload.

func NotFound

func NotFound(category string, element any) error

func Panic

func Panic(message string) error

func RemoteError

func RemoteError(category, code, message string) error

func ValidationFailure

func ValidationFailure(category, message string) error

func Workload added in v0.17.0

func Workload(err error) error

Workload marks err as the workload's own failure. A nil err stays nil.

func Wrap

func Wrap(err error) error

Types

type ErrClosed

type ErrClosed struct {
	Message string
}

func (ErrClosed) Error

func (e ErrClosed) Error() string

func (ErrClosed) ErrorCategory

func (e ErrClosed) ErrorCategory() string

func (ErrClosed) ErrorCode

func (e ErrClosed) ErrorCode() string

func (ErrClosed) ErrorMessage

func (e ErrClosed) ErrorMessage() string

func (ErrClosed) Is

func (e ErrClosed) Is(target error) bool

type ErrConflict

type ErrConflict struct {
	Category string
	Element  string
}

func (ErrConflict) Error

func (e ErrConflict) Error() string

func (ErrConflict) ErrorCategory

func (e ErrConflict) ErrorCategory() string

func (ErrConflict) ErrorCode

func (e ErrConflict) ErrorCode() string

func (ErrConflict) Is

func (e ErrConflict) Is(target error) bool

type ErrCorruption

type ErrCorruption struct {
	Category string
	Message  string
}

func (ErrCorruption) Error

func (e ErrCorruption) Error() string

func (ErrCorruption) ErrorCategory

func (e ErrCorruption) ErrorCategory() string

func (ErrCorruption) ErrorCode

func (e ErrCorruption) ErrorCode() string

func (ErrCorruption) ErrorMessage

func (e ErrCorruption) ErrorMessage() string

func (ErrCorruption) Is

func (e ErrCorruption) Is(target error) bool

type ErrGeneric

type ErrGeneric struct {
	Message string
	// contains filtered or unexported fields
}

func (ErrGeneric) Error

func (e ErrGeneric) Error() string

func (ErrGeneric) ErrorCategory

func (e ErrGeneric) ErrorCategory() string

func (ErrGeneric) ErrorCode

func (e ErrGeneric) ErrorCode() string

func (ErrGeneric) Unwrap

func (e ErrGeneric) Unwrap() error

type ErrNotFound

type ErrNotFound struct {
	Category string
	Element  string
}

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

func (ErrNotFound) ErrorCategory

func (e ErrNotFound) ErrorCategory() string

func (ErrNotFound) ErrorCode

func (e ErrNotFound) ErrorCode() string

func (ErrNotFound) Is

func (e ErrNotFound) Is(target error) bool

type ErrPanic

type ErrPanic struct {
	Message string
}

func (ErrPanic) Error

func (e ErrPanic) Error() string

type ErrRemote

type ErrRemote struct {
	Category string
	Code     string
	Message  string
}

func (ErrRemote) Error

func (e ErrRemote) Error() string

func (ErrRemote) ErrorCategory

func (e ErrRemote) ErrorCategory() string

func (ErrRemote) ErrorCode

func (e ErrRemote) ErrorCode() string

func (ErrRemote) ErrorMessage

func (e ErrRemote) ErrorMessage() string

type ErrValidationFailure

type ErrValidationFailure struct {
	Message  string
	Category string
}

func (ErrValidationFailure) Error

func (e ErrValidationFailure) Error() string

func (ErrValidationFailure) ErrorCategory

func (e ErrValidationFailure) ErrorCategory() string

func (ErrValidationFailure) ErrorCode

func (e ErrValidationFailure) ErrorCode() string

func (ErrValidationFailure) ErrorMessage

func (e ErrValidationFailure) ErrorMessage() string

type ErrWorkload added in v0.17.0

type ErrWorkload struct {
	Err error
}

ErrWorkload marks a failure caused by the workload itself rather than the platform, such as an app that exits before binding its declared port. The platform handled it correctly, so code that logs it along the way should log a warning, not an error: error is for failures we're responsible for, and it's what the error-rate alerts count.

func (ErrWorkload) Error added in v0.17.0

func (e ErrWorkload) Error() string

func (ErrWorkload) Unwrap added in v0.17.0

func (e ErrWorkload) Unwrap() error

Jump to

Keyboard shortcuts

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