Documentation
¶
Index ¶
- func Closed(message string) error
- func Conflict(category string, element any) error
- func Corruption(category string, message string, args ...any) error
- func Error(str string) error
- func Errorf(format string, args ...any) error
- func IsWorkload(err error) bool
- func NotFound(category string, element any) error
- func Panic(message string) error
- func RemoteError(category, code, message string) error
- func ValidationFailure(category, message string) error
- func Workload(err error) error
- func Wrap(err error) error
- type ErrClosed
- type ErrConflict
- type ErrCorruption
- type ErrGeneric
- type ErrNotFound
- type ErrPanic
- type ErrRemote
- type ErrValidationFailure
- type ErrWorkload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWorkload ¶ added in v0.17.0
IsWorkload reports whether anything in err's chain was marked by Workload.
func RemoteError ¶
func ValidationFailure ¶
Types ¶
type ErrClosed ¶
type ErrClosed struct {
Message string
}
func (ErrClosed) ErrorCategory ¶
func (ErrClosed) ErrorMessage ¶
type ErrConflict ¶
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 ¶
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 ¶
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 ErrValidationFailure ¶
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
Click to show internal directories.
Click to hide internal directories.