Documentation
¶
Index ¶
- type BaseError
- type ErrBadRequest
- type ErrConflict
- type ErrForbidden
- type ErrInternal
- type ErrNotFound
- type ErrToManyRequests
- type ErrUnauthorized
- type LocalError
- func NewErrBadRequest(msg string, system string, details map[string]any) LocalError
- func NewErrConflict(msg string, system string, details map[string]any) LocalError
- func NewErrForbidden(msg string, system string, details map[string]any) LocalError
- func NewErrInternal(msg string, system string, details map[string]any) LocalError
- func NewErrNotFound(msg string, system string, details map[string]any) LocalError
- func NewErrToManyRequests(msg string) LocalError
- func NewErrUnauthorized(msg string, system string, details map[string]any) LocalError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseError ¶
type ErrBadRequest ¶
type ErrBadRequest struct {
BaseError
}
func (*ErrBadRequest) Code ¶
func (e *ErrBadRequest) Code() int
type ErrConflict ¶
type ErrConflict struct {
BaseError
}
func (*ErrConflict) Code ¶
func (e *ErrConflict) Code() int
type ErrForbidden ¶
type ErrForbidden struct {
BaseError
}
func (*ErrForbidden) Code ¶
func (e *ErrForbidden) Code() int
type ErrInternal ¶
type ErrInternal struct {
BaseError
}
func (*ErrInternal) Code ¶
func (e *ErrInternal) Code() int
type ErrNotFound ¶
type ErrNotFound struct {
BaseError
}
func (*ErrNotFound) Code ¶
func (e *ErrNotFound) Code() int
type ErrToManyRequests ¶
type ErrToManyRequests struct {
BaseError
}
func (*ErrToManyRequests) Code ¶
func (e *ErrToManyRequests) Code() int
type ErrUnauthorized ¶
type ErrUnauthorized struct {
}
func (*ErrUnauthorized) Code ¶
func (e *ErrUnauthorized) Code() int
type LocalError ¶
type LocalError interface {
error
Message() string
System() string
Details() map[string]any
Code() int
Base() *BaseError
}
func NewErrBadRequest ¶
func NewErrBadRequest(msg string, system string, details map[string]any) LocalError
func NewErrConflict ¶
func NewErrConflict(msg string, system string, details map[string]any) LocalError
func NewErrForbidden ¶
func NewErrForbidden(msg string, system string, details map[string]any) LocalError
func NewErrInternal ¶
func NewErrInternal(msg string, system string, details map[string]any) LocalError
func NewErrNotFound ¶
func NewErrNotFound(msg string, system string, details map[string]any) LocalError
func NewErrToManyRequests ¶
func NewErrToManyRequests(msg string) LocalError
func NewErrUnauthorized ¶
func NewErrUnauthorized(msg string, system string, details map[string]any) LocalError
Click to show internal directories.
Click to hide internal directories.