errors

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrTypeRequestParams        = "request_params_error"
	ErrTypeApplication          = "application_error"
	ErrTypeAlreadyExists        = "already_exists_error"
	ErrTypeNotExists            = "not_exists_error"
	ErrTypeIncorrectPassword    = "incorrect_password_error"
	ErrTypeDomainPrefixMismatch = "domain_prefix_mismatch_error"
	ErrTypeDisabled             = "disabled_error"
	ErrTypeRequestTimeout       = "request_timeout_error"
)

Variables

View Source
var (
	ErrPasswordIncorrect = errors.New("incorrect password")
	ErrNotExistsErr      = errors.New("not exists")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func New

func New(typ string, field string, msg any) *Error

func NewAlreadyExistsError

func NewAlreadyExistsError(field string, msg any) *Error

NewAlreadyExistsError returns an already exists error

func NewAppError

func NewAppError(msg any) *Error

NewAppError returns an application error

func NewNotExistsError

func NewNotExistsError(field string, msg any) *Error

NewNotExistsError returns a not exists error

func NewParamsError

func NewParamsError(field string, msg any) *Error

NewParamsError returns a request params error

func (Error) Error

func (err Error) Error() string

Jump to

Keyboard shortcuts

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