yaruserror

package
v0.0.0-...-4f702ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyExists error = errors.New("Already exists.")

ErrAlreadyExists is error for case when some value is already exists

View Source
var ErrBadParams error = errors.New("Bad params.")

ErrBadRequest is error for case when bad request

View Source
var ErrBadRequest error = errors.New("Bad request.")

ErrBadRequest is error for case when bad request

View Source
var ErrEmptyParams error = errors.New("Empty params.")

ErrEmptyParams is error for case when params are empty

View Source
var ErrInternal error = errors.New("Internal error.")

ErrInternal is error for case when smth went wrong

View Source
var ErrNotFound error = errors.New("Not found.")

ErrNotFound is error for case when entity not found

View Source
var ErrNotSet error = errors.New("Not set.")

ErrNotSet is error for case when some thing is not set

View Source
var ErrTokenHasExpired error = errors.New("Token has expired.")

Functions

This section is empty.

Types

type ErrAlreadyExistsList

type ErrAlreadyExistsList struct {
	*ErrList
}

func NewErrAlreadyExistsList

func NewErrAlreadyExistsList(message string, list map[int]interface{}) *ErrAlreadyExistsList

type ErrList

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

func NewErrList

func NewErrList(message string, list map[int]interface{}) *ErrList

func (*ErrList) Error

func (e *ErrList) Error() string

func (*ErrList) List

func (e *ErrList) List() map[int]interface{}

type ErrNotFoundList

type ErrNotFoundList struct {
	*ErrList
}

func NewErrNotFoundList

func NewErrNotFoundList(message string, list map[int]interface{}) *ErrNotFoundList

Jump to

Keyboard shortcuts

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