Documentation ¶
Index ¶
- Variables
- func ErrorCreateDataError(format string, args ...interface{}) *errors.Error
- func ErrorDataNotFound(format string, args ...interface{}) *errors.Error
- func ErrorDeleteDataError(format string, args ...interface{}) *errors.Error
- func ErrorEditDataError(format string, args ...interface{}) *errors.Error
- func ErrorGetDataError(format string, args ...interface{}) *errors.Error
- func ErrorParameterError(format string, args ...interface{}) *errors.Error
- func ErrorSignDataError(format string, args ...interface{}) *errors.Error
- func IsCreateDataError(err error) bool
- func IsDataNotFound(err error) bool
- func IsDeleteDataError(err error) bool
- func IsEditDataError(err error) bool
- func IsGetDataError(err error) bool
- func IsParameterError(err error) bool
- func IsSignDataError(err error) bool
- type ErrorCommonReason
- func (ErrorCommonReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorCommonReason) Enum() *ErrorCommonReason
- func (ErrorCommonReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorCommonReason) Number() protoreflect.EnumNumber
- func (x ErrorCommonReason) String() string
- func (ErrorCommonReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorCommonReason_name = map[int32]string{ 0: "DATA_NOT_FOUND", 1: "CREATE_DATA_ERROR", 2: "PARAMETER_ERROR", 3: "EDIT_DATA_ERROR", 4: "DELETE_DATA_ERROR", 5: "GET_DATA_ERROR", 6: "SIGN_DATA_ERROR", } ErrorCommonReason_value = map[string]int32{ "DATA_NOT_FOUND": 0, "CREATE_DATA_ERROR": 1, "PARAMETER_ERROR": 2, "EDIT_DATA_ERROR": 3, "DELETE_DATA_ERROR": 4, "GET_DATA_ERROR": 5, "SIGN_DATA_ERROR": 6, } )
Enum value maps for ErrorCommonReason.
View Source
var File_api_common_pb_error_pb_common_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorCreateDataError ¶
创建失败
func ErrorDataNotFound ¶
数据未找到
func ErrorDeleteDataError ¶
删除失败
func ErrorEditDataError ¶
编辑失败
func ErrorGetDataError ¶
获取数据失败
func ErrorParameterError ¶
参数错误
func ErrorSignDataError ¶
签名失败
Types ¶
type ErrorCommonReason ¶
type ErrorCommonReason int32
公共错误
const ( // 数据未找到 ErrorCommonReason_DATA_NOT_FOUND ErrorCommonReason = 0 // 创建失败 ErrorCommonReason_CREATE_DATA_ERROR ErrorCommonReason = 1 // 参数错误 ErrorCommonReason_PARAMETER_ERROR ErrorCommonReason = 2 // 编辑失败 ErrorCommonReason_EDIT_DATA_ERROR ErrorCommonReason = 3 // 删除失败 ErrorCommonReason_DELETE_DATA_ERROR ErrorCommonReason = 4 // 获取数据失败 ErrorCommonReason_GET_DATA_ERROR ErrorCommonReason = 5 // 签名失败 ErrorCommonReason_SIGN_DATA_ERROR ErrorCommonReason = 6 )
func (ErrorCommonReason) Descriptor ¶
func (ErrorCommonReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorCommonReason) Enum ¶
func (x ErrorCommonReason) Enum() *ErrorCommonReason
func (ErrorCommonReason) EnumDescriptor
deprecated
func (ErrorCommonReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorCommonReason.Descriptor instead.
func (ErrorCommonReason) Number ¶
func (x ErrorCommonReason) Number() protoreflect.EnumNumber
func (ErrorCommonReason) String ¶
func (x ErrorCommonReason) String() string
func (ErrorCommonReason) Type ¶
func (ErrorCommonReason) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.