errors

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Is     = errors.Is
	As     = errors.As
	New    = errors.New
	Unwrap = errors.Unwrap
)

Alias noinspection GoUnusedGlobalVariable

View Source
var (
	AuthTokenInvalid      = errors.New("auth token is invalid")
	AuthTokenExpired      = errors.New("auth token is expired")
	AuthTokenNotValidYet  = errors.New("auth token not active yet")
	AuthTokenMalformed    = errors.New("auth token is malformed")
	AuthTokenGenerateFail = errors.New("failed to generate auth token")
)

Auth

View Source
var (
	// ErrRecordNotFound record not found error
	ErrRecordNotFound = errors.New("没找到相关记录")
	ErrServerErr      = errors.New("服务内部错误")

	ErrApiRequestFail = errors.New("接口请求失败")
)

Functions

This section is empty.

Types

type Error

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

func E

func E(err error) *Error

func (*Error) Code

func (err *Error) Code() int

func (*Error) Message

func (err *Error) Message() string

func (*Error) MessageCode

func (err *Error) MessageCode() (string, int)

func (*Error) Stack

func (err *Error) Stack() string

Jump to

Keyboard shortcuts

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