errors

package
v0.0.0-...-7dede72 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0:  "ParamsError",
		1:  "DatabaseError",
		2:  "TransformError",
		3:  "GetError",
		4:  "ListError",
		5:  "CreateError",
		6:  "ImportError",
		7:  "ExportError",
		8:  "UpdateError",
		9:  "DeleteError",
		10: "GetTrashError",
		11: "ListTrashError",
		12: "DeleteTrashError",
		13: "RevertTrashError",
		14: "ResourceServerError",
		15: "ForbiddenError",
		16: "SystemError",
		17: "GenCaptchaError",
		18: "NotExistEmailError",
		19: "GenCaptchaTypeError",
		20: "VerifyCaptchaError",
		21: "OAuthLoginError",
		22: "NotUserError",
		23: "NotAppScopeError",
		24: "RsaDecodeError",
		25: "PasswordFormatError",
		26: "PasswordExpireError",
		27: "PasswordError",
		28: "UserDisableError",
		29: "GenTokenError",
		30: "ParseTokenError",
		31: "RefreshTokenError",
		32: "DisableRegisterError",
		33: "AlreadyExistEmailError",
		34: "AlreadyExistUsernameError",
		35: "RegisterError",
		36: "BindError",
		37: "LoginError",
		38: "ExistFeedbackError",
		39: "ManagerServerError",
		40: "NotPermissionError",
		41: "AlreadyBindError",
		42: "AppMaintenanceError",
		43: "ChannelCloseError",
		44: "AppNotBindChannelError",
		45: "ChannelNotBindUserError",
	}
	ErrorReason_value = map[string]int32{
		"ParamsError":               0,
		"DatabaseError":             1,
		"TransformError":            2,
		"GetError":                  3,
		"ListError":                 4,
		"CreateError":               5,
		"ImportError":               6,
		"ExportError":               7,
		"UpdateError":               8,
		"DeleteError":               9,
		"GetTrashError":             10,
		"ListTrashError":            11,
		"DeleteTrashError":          12,
		"RevertTrashError":          13,
		"ResourceServerError":       14,
		"ForbiddenError":            15,
		"SystemError":               16,
		"GenCaptchaError":           17,
		"NotExistEmailError":        18,
		"GenCaptchaTypeError":       19,
		"VerifyCaptchaError":        20,
		"OAuthLoginError":           21,
		"NotUserError":              22,
		"NotAppScopeError":          23,
		"RsaDecodeError":            24,
		"PasswordFormatError":       25,
		"PasswordExpireError":       26,
		"PasswordError":             27,
		"UserDisableError":          28,
		"GenTokenError":             29,
		"ParseTokenError":           30,
		"RefreshTokenError":         31,
		"DisableRegisterError":      32,
		"AlreadyExistEmailError":    33,
		"AlreadyExistUsernameError": 34,
		"RegisterError":             35,
		"BindError":                 36,
		"LoginError":                37,
		"ExistFeedbackError":        38,
		"ManagerServerError":        39,
		"NotPermissionError":        40,
		"AlreadyBindError":          41,
		"AppMaintenanceError":       42,
		"ChannelCloseError":         43,
		"AppNotBindChannelError":    44,
		"ChannelNotBindUserError":   45,
	}
)

Enum value maps for ErrorReason.

View Source
var File_api_application_errors_application_error_reason_proto protoreflect.FileDescriptor

Functions

func AlreadyBindError

func AlreadyBindError(args ...any) *errors.Error

func AlreadyExistEmailError

func AlreadyExistEmailError(args ...any) *errors.Error

func AlreadyExistUsernameError

func AlreadyExistUsernameError(args ...any) *errors.Error

func AppMaintenanceError

func AppMaintenanceError(args ...any) *errors.Error

func AppNotBindChannelError

func AppNotBindChannelError(args ...any) *errors.Error

func BindError

func BindError(args ...any) *errors.Error

func ChannelCloseError

func ChannelCloseError(args ...any) *errors.Error

func ChannelNotBindUserError

func ChannelNotBindUserError(args ...any) *errors.Error

func CreateError

func CreateError(args ...any) *errors.Error

func DatabaseError

func DatabaseError(args ...any) *errors.Error

func DeleteError

func DeleteError(args ...any) *errors.Error

func DeleteTrashError

func DeleteTrashError(args ...any) *errors.Error

func DisableRegisterError

func DisableRegisterError(args ...any) *errors.Error

func ExistFeedbackError

func ExistFeedbackError(args ...any) *errors.Error

func ExportError

func ExportError(args ...any) *errors.Error

func ForbiddenError

func ForbiddenError(args ...any) *errors.Error

func GenCaptchaError

func GenCaptchaError(args ...any) *errors.Error

func GenCaptchaTypeError

func GenCaptchaTypeError(args ...any) *errors.Error

func GenTokenError

func GenTokenError(args ...any) *errors.Error

func GetError

func GetError(args ...any) *errors.Error

func GetTrashError

func GetTrashError(args ...any) *errors.Error

func ImportError

func ImportError(args ...any) *errors.Error

func IsAlreadyBindError

func IsAlreadyBindError(err error) bool

func IsAlreadyExistEmailError

func IsAlreadyExistEmailError(err error) bool

func IsAlreadyExistUsernameError

func IsAlreadyExistUsernameError(err error) bool

func IsAppMaintenanceError

func IsAppMaintenanceError(err error) bool

func IsAppNotBindChannelError

func IsAppNotBindChannelError(err error) bool

func IsBindError

func IsBindError(err error) bool

func IsChannelCloseError

func IsChannelCloseError(err error) bool

func IsChannelNotBindUserError

func IsChannelNotBindUserError(err error) bool

func IsCreateError

func IsCreateError(err error) bool

func IsDatabaseError

func IsDatabaseError(err error) bool

func IsDeleteError

func IsDeleteError(err error) bool

func IsDeleteTrashError

func IsDeleteTrashError(err error) bool

func IsDisableRegisterError

func IsDisableRegisterError(err error) bool

func IsExistFeedbackError

func IsExistFeedbackError(err error) bool

func IsExportError

func IsExportError(err error) bool

func IsForbiddenError

func IsForbiddenError(err error) bool

func IsGenCaptchaError

func IsGenCaptchaError(err error) bool

func IsGenCaptchaTypeError

func IsGenCaptchaTypeError(err error) bool

func IsGenTokenError

func IsGenTokenError(err error) bool

func IsGetError

func IsGetError(err error) bool

func IsGetTrashError

func IsGetTrashError(err error) bool

func IsImportError

func IsImportError(err error) bool

func IsListError

func IsListError(err error) bool

func IsListTrashError

func IsListTrashError(err error) bool

func IsLoginError

func IsLoginError(err error) bool

func IsManagerServerError

func IsManagerServerError(err error) bool

func IsNotAppScopeError

func IsNotAppScopeError(err error) bool

func IsNotExistEmailError

func IsNotExistEmailError(err error) bool

func IsNotPermissionError

func IsNotPermissionError(err error) bool

func IsNotUserError

func IsNotUserError(err error) bool

func IsOAuthLoginError

func IsOAuthLoginError(err error) bool

func IsParamsError

func IsParamsError(err error) bool

func IsParseTokenError

func IsParseTokenError(err error) bool

func IsPasswordError

func IsPasswordError(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 IsRegisterError

func IsRegisterError(err error) bool

func IsResourceServerError

func IsResourceServerError(err error) bool

func IsRevertTrashError

func IsRevertTrashError(err error) bool

func IsRsaDecodeError

func IsRsaDecodeError(err error) bool

func IsSystemError

func IsSystemError(err error) bool

func IsTransformError

func IsTransformError(err error) bool

func IsUpdateError

func IsUpdateError(err error) bool

func IsUserDisableError

func IsUserDisableError(err error) bool

func IsVerifyCaptchaError

func IsVerifyCaptchaError(err error) bool

func ListError

func ListError(args ...any) *errors.Error

func ListTrashError

func ListTrashError(args ...any) *errors.Error

func LoginError

func LoginError(args ...any) *errors.Error

func ManagerServerError

func ManagerServerError(args ...any) *errors.Error

func NotAppScopeError

func NotAppScopeError(args ...any) *errors.Error

func NotExistEmailError

func NotExistEmailError(args ...any) *errors.Error

func NotPermissionError

func NotPermissionError(args ...any) *errors.Error

func NotUserError

func NotUserError(args ...any) *errors.Error

func OAuthLoginError

func OAuthLoginError(args ...any) *errors.Error

func ParamsError

func ParamsError(args ...any) *errors.Error

func ParseTokenError

func ParseTokenError(args ...any) *errors.Error

func PasswordError

func PasswordError(args ...any) *errors.Error

func PasswordExpireError

func PasswordExpireError(args ...any) *errors.Error

func PasswordFormatError

func PasswordFormatError(args ...any) *errors.Error

func RefreshTokenError

func RefreshTokenError(args ...any) *errors.Error

func RegisterError

func RegisterError(args ...any) *errors.Error

func ResourceServerError

func ResourceServerError(args ...any) *errors.Error

func RevertTrashError

func RevertTrashError(args ...any) *errors.Error

func RsaDecodeError

func RsaDecodeError(args ...any) *errors.Error

func SystemError

func SystemError(args ...any) *errors.Error

func TransformError

func TransformError(args ...any) *errors.Error

func UpdateError

func UpdateError(args ...any) *errors.Error

func UserDisableError

func UserDisableError(args ...any) *errors.Error

func VerifyCaptchaError

func VerifyCaptchaError(args ...any) *errors.Error

Types

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_ParamsError               ErrorReason = 0
	ErrorReason_DatabaseError             ErrorReason = 1
	ErrorReason_TransformError            ErrorReason = 2
	ErrorReason_GetError                  ErrorReason = 3
	ErrorReason_ListError                 ErrorReason = 4
	ErrorReason_CreateError               ErrorReason = 5
	ErrorReason_ImportError               ErrorReason = 6
	ErrorReason_ExportError               ErrorReason = 7
	ErrorReason_UpdateError               ErrorReason = 8
	ErrorReason_DeleteError               ErrorReason = 9
	ErrorReason_GetTrashError             ErrorReason = 10
	ErrorReason_ListTrashError            ErrorReason = 11
	ErrorReason_DeleteTrashError          ErrorReason = 12
	ErrorReason_RevertTrashError          ErrorReason = 13
	ErrorReason_ResourceServerError       ErrorReason = 14
	ErrorReason_ForbiddenError            ErrorReason = 15
	ErrorReason_SystemError               ErrorReason = 16
	ErrorReason_GenCaptchaError           ErrorReason = 17
	ErrorReason_NotExistEmailError        ErrorReason = 18
	ErrorReason_GenCaptchaTypeError       ErrorReason = 19
	ErrorReason_VerifyCaptchaError        ErrorReason = 20
	ErrorReason_OAuthLoginError           ErrorReason = 21
	ErrorReason_NotUserError              ErrorReason = 22
	ErrorReason_NotAppScopeError          ErrorReason = 23
	ErrorReason_RsaDecodeError            ErrorReason = 24
	ErrorReason_PasswordFormatError       ErrorReason = 25
	ErrorReason_PasswordExpireError       ErrorReason = 26
	ErrorReason_PasswordError             ErrorReason = 27
	ErrorReason_UserDisableError          ErrorReason = 28
	ErrorReason_GenTokenError             ErrorReason = 29
	ErrorReason_ParseTokenError           ErrorReason = 30
	ErrorReason_RefreshTokenError         ErrorReason = 31
	ErrorReason_DisableRegisterError      ErrorReason = 32
	ErrorReason_AlreadyExistEmailError    ErrorReason = 33
	ErrorReason_AlreadyExistUsernameError ErrorReason = 34
	ErrorReason_RegisterError             ErrorReason = 35
	ErrorReason_BindError                 ErrorReason = 36
	ErrorReason_LoginError                ErrorReason = 37
	ErrorReason_ExistFeedbackError        ErrorReason = 38
	ErrorReason_ManagerServerError        ErrorReason = 39
	ErrorReason_NotPermissionError        ErrorReason = 40
	ErrorReason_AlreadyBindError          ErrorReason = 41
	ErrorReason_AppMaintenanceError       ErrorReason = 42
	ErrorReason_ChannelCloseError         ErrorReason = 43
	ErrorReason_AppNotBindChannelError    ErrorReason = 44
	ErrorReason_ChannelNotBindUserError   ErrorReason = 45
)

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