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 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 Wrap(err error) error
- type ErrClosed
- type ErrConflict
- type ErrCorruption
- type ErrGeneric
- type ErrNotFound
- type ErrPanic
- type ErrRemote
- type ErrValidationFailure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.