cerror

package
v0.0.0-...-0575462 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccountOrPasswordNotMatch = Error{Code: "A0001", Message: "account or password not match"}
	ErrAccountAlreadyExist       = Error{Code: "A0002", Message: "account already exist"}
	ErrTokenExpired              = Error{Code: "A0003", Message: "token expired"}
	ErrInternalServerError       = Error{Code: "S0001", Message: "internal server error"}
)

Functions

func GetGQLError

func GetGQLError(ctx context.Context, e error) error

Types

type Error

type Error struct {
	Code    string
	Message string
}

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