errors

package
v0.0.0-...-d16b773 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitErrorMap

func InitErrorMap() map[Error]string

Types

type Error

type Error int
const (
	Success               Error = 0
	Default               Error = 10000000
	UserNotFound          Error = 10000001
	EmailIsExist          Error = 10000002
	NickNameIsEmpty       Error = 10000003
	EmailIsEmpty          Error = 10000004
	PasswordIsEmpty       Error = 10000005
	PasswordIsError       Error = 10000006
	EmailIsLocked         Error = 10000007
	TitleOrContentIsEmpty Error = 10000008
	CategoryNotFound      Error = 10000009
	CategoryIsEmpty       Error = 10000010
	CategoryIsExist       Error = 10000011
)

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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