errordef

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Error_Success          = 0
	Error_InvalidParameter = 0x100001
)

错误码定义

View Source
const (
	Error_Msg_Success             = "Success"
	Error_Msg_InvalidParameter    = "InvalidParameter"
	Error_Msg_ParsingParam        = "ParsingParamError"
	Error_Msg_OperationFailed     = "OperationFailed"
	Error_Msg_AuthorizationFailed = "AuthorizationFailed"
	Error_Msg_InternalError       = "InternalError"
)

错误串定义

Variables

View Source
var ErrAccessDenied = errors.New("access denied")
View Source
var ErrDummy = &DummyError{}

Dummy

View Source
var ErrInternalError = errors.New("internal error")
View Source
var ErrInvalidParameter = errors.New("invalid parameter")
View Source
var ErrNotFound = &NotFoundError{}

NotFound

View Source
var ErrOperationFailed = errors.New("operation failed")
View Source
var ErrUninitialized = errors.New("uninitialized")

错误码映射表

Functions

This section is empty.

Types

type DummyError

type DummyError struct {
}

DummyError

func (*DummyError) Error

func (e *DummyError) Error() string

实现 Error 接口

type NotFoundError

type NotFoundError struct {
}

NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

实现 Error 接口

Jump to

Keyboard shortcuts

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