err

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommonErrorReason_name = map[int32]string{
		0: "NoPermission",
		1: "NoData",
	}
	CommonErrorReason_value = map[string]int32{
		"NoPermission": 0,
		"NoData":       1,
	}
)

Enum value maps for CommonErrorReason.

View Source
var File_api_common_err_common_error_proto protoreflect.FileDescriptor

Functions

func ErrorNoData added in v0.0.13

func ErrorNoData(format string, args ...interface{}) *errors.Error

没有数据

func ErrorNoPermission added in v0.0.13

func ErrorNoPermission(format string, args ...interface{}) *errors.Error

没有权限

func IsNoData added in v0.0.13

func IsNoData(err error) bool

没有数据

func IsNoPermission added in v0.0.13

func IsNoPermission(err error) bool

没有权限

Types

type CommonErrorReason

type CommonErrorReason int32
const (
	// 没有权限
	CommonErrorReason_NoPermission CommonErrorReason = 0
	// 没有数据
	CommonErrorReason_NoData CommonErrorReason = 1
)

func (CommonErrorReason) Descriptor

func (CommonErrorReason) Enum

func (CommonErrorReason) EnumDescriptor deprecated

func (CommonErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommonErrorReason.Descriptor instead.

func (CommonErrorReason) Number

func (CommonErrorReason) String

func (x CommonErrorReason) String() string

func (CommonErrorReason) Type

Jump to

Keyboard shortcuts

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