errlocal

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError struct {
	Msg        string         `json:"message,omitempty"`
	Sys        string         `json:"system,omitempty"`
	DetailsMap map[string]any `json:"details,omitempty"`
}

func (*BaseError) Base

func (e *BaseError) Base() *BaseError

func (*BaseError) Code

func (e *BaseError) Code() int

func (*BaseError) Details

func (e *BaseError) Details() map[string]any

func (*BaseError) Error

func (e *BaseError) Error() string

func (*BaseError) Message

func (e *BaseError) Message() string

func (*BaseError) System

func (e *BaseError) System() string

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 {
	BaseError
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL