Documentation ¶
Index ¶
- Variables
- type Error
- func (e Error) AddExtensions(extensions ...Extension) Error
- func (e Error) Code() int
- func (e Error) CodeText() string
- func (e Error) Error() string
- func (e Error) Extensions() map[string]any
- func (e Error) Is(target error) bool
- func (e Error) WithDetails(details string) Error
- func (e Error) WithMsg(msg string) Error
- type Extension
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = Error{/* contains filtered or unexported fields */} ErrInternalServerError = Error{/* contains filtered or unexported fields */} ErrNotFound = Error{/* contains filtered or unexported fields */} )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) AddExtensions ¶
func (Error) Extensions ¶
func (Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.