error

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInternalServerError will throw if any the Internal Server Error happen
	ErrInternalServerError = errors.New("internal Server Error")

	// ErrNotFound will throw if the requested item is not exists
	ErrNotFound = errors.New("your requested Item is not found")

	// ErrConflict will throw if the current action already exists
	ErrConflict = errors.New("your Item already exist")

	// ErrBadParamInput will throw if the given request-body or params is not valid
	ErrBadParamInput = errors.New("given Param is not valid")

	// ErrBadRequest bad request ocurred when requisition contains errors
	ErrBadRequest = errors.New("your request was recused because contains errors")
)

Functions

func GetStatusErrorCode

func GetStatusErrorCode(err error) int

GetStatusErrorCode - Check error type and return approprieted

Types

This section is empty.

Jump to

Keyboard shortcuts

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