errors

package
v0.0.0-...-cba691a Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_errors_business_error_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BusinessError

type BusinessError struct {

	// 错误代码
	Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	// 错误消息
	Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

BusinessError 业务错误

func (*BusinessError) Descriptor deprecated

func (*BusinessError) Descriptor() ([]byte, []int)

Deprecated: Use BusinessError.ProtoReflect.Descriptor instead.

func (*BusinessError) GetCode

func (x *BusinessError) GetCode() uint32

func (*BusinessError) GetMsg

func (x *BusinessError) GetMsg() string

func (*BusinessError) ProtoMessage

func (*BusinessError) ProtoMessage()

func (*BusinessError) ProtoReflect

func (x *BusinessError) ProtoReflect() protoreflect.Message

func (*BusinessError) Reset

func (x *BusinessError) Reset()

func (*BusinessError) String

func (x *BusinessError) String() string

Jump to

Keyboard shortcuts

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