Documentation
¶
Index ¶
- func EnsureInternal(err error) error
- func Is(err error, code Code) bool
- type Code
- type Error
- func AlreadyExists(subject, key string, value any) *Error
- func BadRequest(err error) *Error
- func BadRequestHidden(err error, message string) *Error
- func Forbidden(message string) *Error
- func Internal(err error) *Error
- func InternalWithoutStackTrace(err error) *Error
- func NotFound(subject, key string, value any) *Error
- func Unauthorized(message string) *Error
- func UnauthorizedHidden(err error, message string) *Error
- func VersionMismatch(subject, key string, value any, version int) *Error
- func WrapInternal(err error) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureInternal ¶
Types ¶
type Error ¶
type Error struct {
Code Code
StackTrace string
IncidentID string
// contains filtered or unexported fields
}
func AlreadyExists ¶
func BadRequest ¶
func BadRequestHidden ¶
func Unauthorized ¶
func UnauthorizedHidden ¶
func WrapInternal ¶
Click to show internal directories.
Click to hide internal directories.