errors

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0:  "DatabaseError",
		1:  "TransformError",
		2:  "AlreadyExistsError",
		3:  "ParamsError",
		4:  "NotRecordError",
		5:  "ResourceFormatValueError",
		6:  "CheckTemplateError",
		7:  "ParseTemplateError",
		8:  "VersionExistError",
		9:  "WatchConfigureError",
		10: "RsaDecodeError",
		11: "PasswordFormatError",
		12: "PasswordExpireError",
		13: "UserPasswordError",
		14: "NewTokenError",
		15: "RefreshTokenError",
		16: "TokenAuthError",
		17: "ServerNotFound",
		18: "ResourceValueError",
		19: "BusinessValueError",
	}
	ErrorReason_value = map[string]int32{
		"DatabaseError":            0,
		"TransformError":           1,
		"AlreadyExistsError":       2,
		"ParamsError":              3,
		"NotRecordError":           4,
		"ResourceFormatValueError": 5,
		"CheckTemplateError":       6,
		"ParseTemplateError":       7,
		"VersionExistError":        8,
		"WatchConfigureError":      9,
		"RsaDecodeError":           10,
		"PasswordFormatError":      11,
		"PasswordExpireError":      12,
		"UserPasswordError":        13,
		"NewTokenError":            14,
		"RefreshTokenError":        15,
		"TokenAuthError":           16,
		"ServerNotFound":           17,
		"ResourceValueError":       18,
		"BusinessValueError":       19,
	}
)

Enum value maps for ErrorReason.

View Source
var File_configure_error_reason_proto protoreflect.FileDescriptor

Functions

func AlreadyExistsError

func AlreadyExistsError() *errors.Error

func AlreadyExistsErrorFormat

func AlreadyExistsErrorFormat(format string, args ...any) *errors.Error

func BusinessValueError

func BusinessValueError() *errors.Error

func BusinessValueErrorFormat

func BusinessValueErrorFormat(format string, args ...any) *errors.Error

func CheckTemplateError

func CheckTemplateError() *errors.Error

func CheckTemplateErrorFormat

func CheckTemplateErrorFormat(format string, args ...any) *errors.Error

func DatabaseError

func DatabaseError() *errors.Error

func DatabaseErrorFormat

func DatabaseErrorFormat(format string, args ...any) *errors.Error

func IsAlreadyExistsError

func IsAlreadyExistsError(err error) bool

func IsBusinessValueError

func IsBusinessValueError(err error) bool

func IsCheckTemplateError

func IsCheckTemplateError(err error) bool

func IsDatabaseError

func IsDatabaseError(err error) bool

func IsNewTokenError

func IsNewTokenError(err error) bool

func IsNotRecordError

func IsNotRecordError(err error) bool

func IsParamsError

func IsParamsError(err error) bool

func IsParseTemplateError

func IsParseTemplateError(err error) bool

func IsPasswordExpireError

func IsPasswordExpireError(err error) bool

func IsPasswordFormatError

func IsPasswordFormatError(err error) bool

func IsRefreshTokenError

func IsRefreshTokenError(err error) bool

func IsResourceFormatValueError

func IsResourceFormatValueError(err error) bool

func IsResourceValueError

func IsResourceValueError(err error) bool

func IsRsaDecodeError

func IsRsaDecodeError(err error) bool

func IsServerNotFound

func IsServerNotFound(err error) bool

func IsTokenAuthError

func IsTokenAuthError(err error) bool

func IsTransformError

func IsTransformError(err error) bool

func IsUserPasswordError

func IsUserPasswordError(err error) bool

func IsVersionExistError

func IsVersionExistError(err error) bool

func IsWatchConfigureError

func IsWatchConfigureError(err error) bool

func NewTokenError

func NewTokenError() *errors.Error

func NewTokenErrorFormat

func NewTokenErrorFormat(format string, args ...any) *errors.Error

func NotRecordError

func NotRecordError() *errors.Error

func NotRecordErrorFormat

func NotRecordErrorFormat(format string, args ...any) *errors.Error

func ParamsError

func ParamsError() *errors.Error

func ParamsErrorFormat

func ParamsErrorFormat(format string, args ...any) *errors.Error

func ParseTemplateError

func ParseTemplateError() *errors.Error

func ParseTemplateErrorFormat

func ParseTemplateErrorFormat(format string, args ...any) *errors.Error

func PasswordExpireError

func PasswordExpireError() *errors.Error

func PasswordExpireErrorFormat

func PasswordExpireErrorFormat(format string, args ...any) *errors.Error

func PasswordFormatError

func PasswordFormatError() *errors.Error

func PasswordFormatErrorFormat

func PasswordFormatErrorFormat(format string, args ...any) *errors.Error

func RefreshTokenError

func RefreshTokenError() *errors.Error

func RefreshTokenErrorFormat

func RefreshTokenErrorFormat(format string, args ...any) *errors.Error

func ResourceFormatValueError

func ResourceFormatValueError() *errors.Error

func ResourceFormatValueErrorFormat

func ResourceFormatValueErrorFormat(format string, args ...any) *errors.Error

func ResourceValueError

func ResourceValueError() *errors.Error

func ResourceValueErrorFormat

func ResourceValueErrorFormat(format string, args ...any) *errors.Error

func RsaDecodeError

func RsaDecodeError() *errors.Error

func RsaDecodeErrorFormat

func RsaDecodeErrorFormat(format string, args ...any) *errors.Error

func ServerNotFound

func ServerNotFound() *errors.Error

func ServerNotFoundFormat

func ServerNotFoundFormat(format string, args ...any) *errors.Error

func TokenAuthError

func TokenAuthError() *errors.Error

func TokenAuthErrorFormat

func TokenAuthErrorFormat(format string, args ...any) *errors.Error

func TransformError

func TransformError() *errors.Error

func TransformErrorFormat

func TransformErrorFormat(format string, args ...any) *errors.Error

func UserPasswordError

func UserPasswordError() *errors.Error

func UserPasswordErrorFormat

func UserPasswordErrorFormat(format string, args ...any) *errors.Error

func VersionExistError

func VersionExistError() *errors.Error

func VersionExistErrorFormat

func VersionExistErrorFormat(format string, args ...any) *errors.Error

func WatchConfigureError

func WatchConfigureError() *errors.Error

func WatchConfigureErrorFormat

func WatchConfigureErrorFormat(format string, args ...any) *errors.Error

Types

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_DatabaseError            ErrorReason = 0
	ErrorReason_TransformError           ErrorReason = 1
	ErrorReason_AlreadyExistsError       ErrorReason = 2
	ErrorReason_ParamsError              ErrorReason = 3
	ErrorReason_NotRecordError           ErrorReason = 4
	ErrorReason_ResourceFormatValueError ErrorReason = 5
	ErrorReason_CheckTemplateError       ErrorReason = 6
	ErrorReason_ParseTemplateError       ErrorReason = 7
	ErrorReason_VersionExistError        ErrorReason = 8
	ErrorReason_WatchConfigureError      ErrorReason = 9
	ErrorReason_RsaDecodeError           ErrorReason = 10
	ErrorReason_PasswordFormatError      ErrorReason = 11
	ErrorReason_PasswordExpireError      ErrorReason = 12
	ErrorReason_UserPasswordError        ErrorReason = 13
	ErrorReason_NewTokenError            ErrorReason = 14
	ErrorReason_RefreshTokenError        ErrorReason = 15
	ErrorReason_TokenAuthError           ErrorReason = 16
	ErrorReason_ServerNotFound           ErrorReason = 17
	ErrorReason_ResourceValueError       ErrorReason = 18
	ErrorReason_BusinessValueError       ErrorReason = 19
)

func (ErrorReason) Descriptor

func (ErrorReason) Enum

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

Jump to

Keyboard shortcuts

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