errors

package
v0.0.0-...-734a412 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0:    "SystemError",
		1:    "FileSystemError",
		2:    "NetWorkError",
		3:    "DatabaseError",
		4:    "ParamsError",
		5:    "TransformError",
		6:    "GetError",
		7:    "ListError",
		8:    "CreateError",
		9:    "ImportError",
		10:   "ExportError",
		11:   "UpdateError",
		12:   "DeleteError",
		1000: "ConfigServiceError",
		1001: "GetTrashError",
		1002: "ListTrashError",
		1003: "DeleteTrashError",
		1004: "RevertTrashError",
		1005: "BusinessValueTypeError",
		1006: "ResourceValueTypeError",
		1007: "RenderTemplateError",
		1008: "TemplateVersionExistError",
		1009: "ServerNotExistTemplateError",
		1010: "ConfigureVersionExistError",
		1011: "WatchConfigureError",
		1012: "TokenAuthError",
		1013: "ServerNotFound",
		1014: "PasswordError",
		1015: "PasswordExpireError",
		1016: "RefreshTokenError",
		1017: "BroadcastConfigureError",
		2000: "ResourceServiceError",
		2001: "NoSupportStoreError",
		2002: "NoSupportFileTypeError",
		2003: "VerifySignError",
		2004: "ChunkUploadError",
		2005: "StatusProgressError",
		2006: "UploadFileError",
		2007: "InitStoreError",
		2008: "FileFormatError",
		2009: "NotExistFileError",
		2010: "AlreadyExistFileNameError",
		2011: "AccessResourceError",
		2012: "ExportFileNameDupError",
		2013: "ExportTaskProcessError",
		2014: "ExceedMaxSizeError",
		3000: "ManagerServiceError",
		3001: "DepartmentPurviewError",
		3002: "RolePurviewError",
		3003: "UserPurviewError",
		3004: "MenuPurviewError",
		3005: "EditSystemDataError",
		3006: "GenCaptchaError",
		3007: "SendCaptchaError",
		3008: "DeleteSystemDataError",
		3009: "VerifyCaptchaError",
		3010: "UsernameFormatError",
		3011: "UsernameNotExistError",
		3012: "UserDisableError",
		3013: "RoleDisableError",
		3014: "GenTokenError",
		3015: "ParseTokenError",
		3016: "ForbiddenError",
		3017: "NotPermissionError",
		4000: "UserServiceError",
		4001: "GenCaptchaTypeError",
		4002: "NotExistEmailError",
		4003: "OAuthLoginError",
		4004: "NotUserError",
		4005: "NotAppScopeError",
		4006: "RsaDecodeError",
		4007: "PasswordFormatError",
		4008: "DisableRegisterError",
		4009: "AlreadyExistEmailError",
		4010: "AlreadyExistUsernameError",
		4011: "RegisterError",
		4012: "BindError",
		4013: "LoginError",
		4014: "ExistFeedbackError",
		4015: "AlreadyBindError",
		4016: "AppMaintenanceError",
		4017: "ChannelCloseError",
		4018: "AppNotBindChannelError",
		4019: "ChannelNotBindUserError",
	}
	ErrorReason_value = map[string]int32{
		"SystemError":                 0,
		"FileSystemError":             1,
		"NetWorkError":                2,
		"DatabaseError":               3,
		"ParamsError":                 4,
		"TransformError":              5,
		"GetError":                    6,
		"ListError":                   7,
		"CreateError":                 8,
		"ImportError":                 9,
		"ExportError":                 10,
		"UpdateError":                 11,
		"DeleteError":                 12,
		"ConfigServiceError":          1000,
		"GetTrashError":               1001,
		"ListTrashError":              1002,
		"DeleteTrashError":            1003,
		"RevertTrashError":            1004,
		"BusinessValueTypeError":      1005,
		"ResourceValueTypeError":      1006,
		"RenderTemplateError":         1007,
		"TemplateVersionExistError":   1008,
		"ServerNotExistTemplateError": 1009,
		"ConfigureVersionExistError":  1010,
		"WatchConfigureError":         1011,
		"TokenAuthError":              1012,
		"ServerNotFound":              1013,
		"PasswordError":               1014,
		"PasswordExpireError":         1015,
		"RefreshTokenError":           1016,
		"BroadcastConfigureError":     1017,
		"ResourceServiceError":        2000,
		"NoSupportStoreError":         2001,
		"NoSupportFileTypeError":      2002,
		"VerifySignError":             2003,
		"ChunkUploadError":            2004,
		"StatusProgressError":         2005,
		"UploadFileError":             2006,
		"InitStoreError":              2007,
		"FileFormatError":             2008,
		"NotExistFileError":           2009,
		"AlreadyExistFileNameError":   2010,
		"AccessResourceError":         2011,
		"ExportFileNameDupError":      2012,
		"ExportTaskProcessError":      2013,
		"ExceedMaxSizeError":          2014,
		"ManagerServiceError":         3000,
		"DepartmentPurviewError":      3001,
		"RolePurviewError":            3002,
		"UserPurviewError":            3003,
		"MenuPurviewError":            3004,
		"EditSystemDataError":         3005,
		"GenCaptchaError":             3006,
		"SendCaptchaError":            3007,
		"DeleteSystemDataError":       3008,
		"VerifyCaptchaError":          3009,
		"UsernameFormatError":         3010,
		"UsernameNotExistError":       3011,
		"UserDisableError":            3012,
		"RoleDisableError":            3013,
		"GenTokenError":               3014,
		"ParseTokenError":             3015,
		"ForbiddenError":              3016,
		"NotPermissionError":          3017,
		"UserServiceError":            4000,
		"GenCaptchaTypeError":         4001,
		"NotExistEmailError":          4002,
		"OAuthLoginError":             4003,
		"NotUserError":                4004,
		"NotAppScopeError":            4005,
		"RsaDecodeError":              4006,
		"PasswordFormatError":         4007,
		"DisableRegisterError":        4008,
		"AlreadyExistEmailError":      4009,
		"AlreadyExistUsernameError":   4010,
		"RegisterError":               4011,
		"BindError":                   4012,
		"LoginError":                  4013,
		"ExistFeedbackError":          4014,
		"AlreadyBindError":            4015,
		"AppMaintenanceError":         4016,
		"ChannelCloseError":           4017,
		"AppNotBindChannelError":      4018,
		"ChannelNotBindUserError":     4019,
	}
)

Enum value maps for ErrorReason.

View Source
var File_errors_v1_error_reason_proto protoreflect.FileDescriptor

Functions

func AccessResourceError

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

func AccessResourceErrorf

func AccessResourceErrorf(msg string, args ...any) *errors.Error

func AlreadyBindError

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

func AlreadyBindErrorf

func AlreadyBindErrorf(msg string, args ...any) *errors.Error

func AlreadyExistEmailError

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

func AlreadyExistEmailErrorf

func AlreadyExistEmailErrorf(msg string, args ...any) *errors.Error

func AlreadyExistFileNameError

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

func AlreadyExistFileNameErrorf

func AlreadyExistFileNameErrorf(msg string, args ...any) *errors.Error

func AlreadyExistUsernameError

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

func AlreadyExistUsernameErrorf

func AlreadyExistUsernameErrorf(msg string, args ...any) *errors.Error

func AppMaintenanceError

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

func AppMaintenanceErrorf

func AppMaintenanceErrorf(msg string, args ...any) *errors.Error

func AppNotBindChannelError

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

func AppNotBindChannelErrorf

func AppNotBindChannelErrorf(msg string, args ...any) *errors.Error

func BindError

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

func BindErrorf

func BindErrorf(msg string, args ...any) *errors.Error

func BroadcastConfigureError

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

func BroadcastConfigureErrorf

func BroadcastConfigureErrorf(msg string, args ...any) *errors.Error

func BusinessValueTypeError

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

func BusinessValueTypeErrorf

func BusinessValueTypeErrorf(msg string, args ...any) *errors.Error

func ChannelCloseError

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

func ChannelCloseErrorf

func ChannelCloseErrorf(msg string, args ...any) *errors.Error

func ChannelNotBindUserError

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

func ChannelNotBindUserErrorf

func ChannelNotBindUserErrorf(msg string, args ...any) *errors.Error

func ChunkUploadError

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

func ChunkUploadErrorf

func ChunkUploadErrorf(msg string, args ...any) *errors.Error

func ConfigServiceError

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

Config service errors (1000-1999)

func ConfigServiceErrorf

func ConfigServiceErrorf(msg string, args ...any) *errors.Error

Config service errors (1000-1999)

func ConfigureVersionExistError

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

func ConfigureVersionExistErrorf

func ConfigureVersionExistErrorf(msg string, args ...any) *errors.Error

func CreateError

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

func CreateErrorf

func CreateErrorf(msg string, args ...any) *errors.Error

func DatabaseError

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

func DatabaseErrorf

func DatabaseErrorf(msg string, args ...any) *errors.Error

func DeleteError

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

func DeleteErrorf

func DeleteErrorf(msg string, args ...any) *errors.Error

func DeleteSystemDataError

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

func DeleteSystemDataErrorf

func DeleteSystemDataErrorf(msg string, args ...any) *errors.Error

func DeleteTrashError

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

func DeleteTrashErrorf

func DeleteTrashErrorf(msg string, args ...any) *errors.Error

func DepartmentPurviewError

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

func DepartmentPurviewErrorf

func DepartmentPurviewErrorf(msg string, args ...any) *errors.Error

func DisableRegisterError

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

func DisableRegisterErrorf

func DisableRegisterErrorf(msg string, args ...any) *errors.Error

func EditSystemDataError

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

func EditSystemDataErrorf

func EditSystemDataErrorf(msg string, args ...any) *errors.Error

func ExceedMaxSizeError

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

func ExceedMaxSizeErrorf

func ExceedMaxSizeErrorf(msg string, args ...any) *errors.Error

func ExistFeedbackError

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

func ExistFeedbackErrorf

func ExistFeedbackErrorf(msg string, args ...any) *errors.Error

func ExportError

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

func ExportErrorf

func ExportErrorf(msg string, args ...any) *errors.Error

func ExportFileNameDupError

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

func ExportFileNameDupErrorf

func ExportFileNameDupErrorf(msg string, args ...any) *errors.Error

func ExportTaskProcessError

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

func ExportTaskProcessErrorf

func ExportTaskProcessErrorf(msg string, args ...any) *errors.Error

func FileFormatError

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

func FileFormatErrorf

func FileFormatErrorf(msg string, args ...any) *errors.Error

func FileSystemError

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

func FileSystemErrorf

func FileSystemErrorf(msg string, args ...any) *errors.Error

func ForbiddenError

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

func ForbiddenErrorf

func ForbiddenErrorf(msg string, args ...any) *errors.Error

func GenCaptchaError

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

func GenCaptchaErrorf

func GenCaptchaErrorf(msg string, args ...any) *errors.Error

func GenCaptchaTypeError

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

func GenCaptchaTypeErrorf

func GenCaptchaTypeErrorf(msg string, args ...any) *errors.Error

func GenTokenError

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

func GenTokenErrorf

func GenTokenErrorf(msg string, args ...any) *errors.Error

func GetError

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

func GetErrorf

func GetErrorf(msg string, args ...any) *errors.Error

func GetTrashError

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

func GetTrashErrorf

func GetTrashErrorf(msg string, args ...any) *errors.Error

func ImportError

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

func ImportErrorf

func ImportErrorf(msg string, args ...any) *errors.Error

func InitStoreError

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

func InitStoreErrorf

func InitStoreErrorf(msg string, args ...any) *errors.Error

func IsAccessResourceError

func IsAccessResourceError(err error) bool

func IsAlreadyBindError

func IsAlreadyBindError(err error) bool

func IsAlreadyExistEmailError

func IsAlreadyExistEmailError(err error) bool

func IsAlreadyExistFileNameError

func IsAlreadyExistFileNameError(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 IsBroadcastConfigureError

func IsBroadcastConfigureError(err error) bool

func IsBusinessValueTypeError

func IsBusinessValueTypeError(err error) bool

func IsChannelCloseError

func IsChannelCloseError(err error) bool

func IsChannelNotBindUserError

func IsChannelNotBindUserError(err error) bool

func IsChunkUploadError

func IsChunkUploadError(err error) bool

func IsConfigServiceError

func IsConfigServiceError(err error) bool

Config service errors (1000-1999)

func IsConfigureVersionExistError

func IsConfigureVersionExistError(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 IsDeleteSystemDataError

func IsDeleteSystemDataError(err error) bool

func IsDeleteTrashError

func IsDeleteTrashError(err error) bool

func IsDepartmentPurviewError

func IsDepartmentPurviewError(err error) bool

func IsDisableRegisterError

func IsDisableRegisterError(err error) bool

func IsEditSystemDataError

func IsEditSystemDataError(err error) bool

func IsExceedMaxSizeError

func IsExceedMaxSizeError(err error) bool

func IsExistFeedbackError

func IsExistFeedbackError(err error) bool

func IsExportError

func IsExportError(err error) bool

func IsExportFileNameDupError

func IsExportFileNameDupError(err error) bool

func IsExportTaskProcessError

func IsExportTaskProcessError(err error) bool

func IsFileFormatError

func IsFileFormatError(err error) bool

func IsFileSystemError

func IsFileSystemError(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 IsInitStoreError

func IsInitStoreError(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 IsManagerServiceError

func IsManagerServiceError(err error) bool

Manager service errors (3000-3999)

func IsMenuPurviewError

func IsMenuPurviewError(err error) bool

func IsNetWorkError

func IsNetWorkError(err error) bool

func IsNoSupportFileTypeError

func IsNoSupportFileTypeError(err error) bool

func IsNoSupportStoreError

func IsNoSupportStoreError(err error) bool

func IsNotAppScopeError

func IsNotAppScopeError(err error) bool

func IsNotExistEmailError

func IsNotExistEmailError(err error) bool

func IsNotExistFileError

func IsNotExistFileError(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 IsRenderTemplateError

func IsRenderTemplateError(err error) bool

func IsResourceServiceError

func IsResourceServiceError(err error) bool

Resource service errors (2000-2999)

func IsResourceValueTypeError

func IsResourceValueTypeError(err error) bool

func IsRevertTrashError

func IsRevertTrashError(err error) bool

func IsRoleDisableError

func IsRoleDisableError(err error) bool

func IsRolePurviewError

func IsRolePurviewError(err error) bool

func IsRsaDecodeError

func IsRsaDecodeError(err error) bool

func IsSendCaptchaError

func IsSendCaptchaError(err error) bool

func IsServerNotExistTemplateError

func IsServerNotExistTemplateError(err error) bool

func IsServerNotFound

func IsServerNotFound(err error) bool

func IsStatusProgressError

func IsStatusProgressError(err error) bool

func IsSystemError

func IsSystemError(err error) bool

Common errors (0-999)

func IsTemplateVersionExistError

func IsTemplateVersionExistError(err error) bool

func IsTokenAuthError

func IsTokenAuthError(err error) bool

func IsTransformError

func IsTransformError(err error) bool

func IsUpdateError

func IsUpdateError(err error) bool

func IsUploadFileError

func IsUploadFileError(err error) bool

func IsUserDisableError

func IsUserDisableError(err error) bool

func IsUserPurviewError

func IsUserPurviewError(err error) bool

func IsUserServiceError

func IsUserServiceError(err error) bool

Usercenter errors (4000-4999)

func IsUsernameFormatError

func IsUsernameFormatError(err error) bool

func IsUsernameNotExistError

func IsUsernameNotExistError(err error) bool

func IsVerifyCaptchaError

func IsVerifyCaptchaError(err error) bool

func IsVerifySignError

func IsVerifySignError(err error) bool

func IsWatchConfigureError

func IsWatchConfigureError(err error) bool

func ListError

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

func ListErrorf

func ListErrorf(msg string, args ...any) *errors.Error

func ListTrashError

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

func ListTrashErrorf

func ListTrashErrorf(msg string, args ...any) *errors.Error

func LoginError

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

func LoginErrorf

func LoginErrorf(msg string, args ...any) *errors.Error

func ManagerServiceError

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

Manager service errors (3000-3999)

func ManagerServiceErrorf

func ManagerServiceErrorf(msg string, args ...any) *errors.Error

Manager service errors (3000-3999)

func MenuPurviewError(args ...any) *errors.Error
func MenuPurviewErrorf(msg string, args ...any) *errors.Error

func NetWorkError

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

func NetWorkErrorf

func NetWorkErrorf(msg string, args ...any) *errors.Error

func NoSupportFileTypeError

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

func NoSupportFileTypeErrorf

func NoSupportFileTypeErrorf(msg string, args ...any) *errors.Error

func NoSupportStoreError

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

func NoSupportStoreErrorf

func NoSupportStoreErrorf(msg string, args ...any) *errors.Error

func NotAppScopeError

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

func NotAppScopeErrorf

func NotAppScopeErrorf(msg string, args ...any) *errors.Error

func NotExistEmailError

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

func NotExistEmailErrorf

func NotExistEmailErrorf(msg string, args ...any) *errors.Error

func NotExistFileError

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

func NotExistFileErrorf

func NotExistFileErrorf(msg string, args ...any) *errors.Error

func NotPermissionError

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

func NotPermissionErrorf

func NotPermissionErrorf(msg string, args ...any) *errors.Error

func NotUserError

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

func NotUserErrorf

func NotUserErrorf(msg string, args ...any) *errors.Error

func OAuthLoginError

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

func OAuthLoginErrorf

func OAuthLoginErrorf(msg string, args ...any) *errors.Error

func ParamsError

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

func ParamsErrorf

func ParamsErrorf(msg string, args ...any) *errors.Error

func ParseTokenError

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

func ParseTokenErrorf

func ParseTokenErrorf(msg string, args ...any) *errors.Error

func PasswordError

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

func PasswordErrorf

func PasswordErrorf(msg string, args ...any) *errors.Error

func PasswordExpireError

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

func PasswordExpireErrorf

func PasswordExpireErrorf(msg string, args ...any) *errors.Error

func PasswordFormatError

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

func PasswordFormatErrorf

func PasswordFormatErrorf(msg string, args ...any) *errors.Error

func RefreshTokenError

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

func RefreshTokenErrorf

func RefreshTokenErrorf(msg string, args ...any) *errors.Error

func RegisterError

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

func RegisterErrorf

func RegisterErrorf(msg string, args ...any) *errors.Error

func RenderTemplateError

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

func RenderTemplateErrorf

func RenderTemplateErrorf(msg string, args ...any) *errors.Error

func ResourceServiceError

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

Resource service errors (2000-2999)

func ResourceServiceErrorf

func ResourceServiceErrorf(msg string, args ...any) *errors.Error

Resource service errors (2000-2999)

func ResourceValueTypeError

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

func ResourceValueTypeErrorf

func ResourceValueTypeErrorf(msg string, args ...any) *errors.Error

func RevertTrashError

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

func RevertTrashErrorf

func RevertTrashErrorf(msg string, args ...any) *errors.Error

func RoleDisableError

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

func RoleDisableErrorf

func RoleDisableErrorf(msg string, args ...any) *errors.Error

func RolePurviewError

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

func RolePurviewErrorf

func RolePurviewErrorf(msg string, args ...any) *errors.Error

func RsaDecodeError

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

func RsaDecodeErrorf

func RsaDecodeErrorf(msg string, args ...any) *errors.Error

func SendCaptchaError

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

func SendCaptchaErrorf

func SendCaptchaErrorf(msg string, args ...any) *errors.Error

func ServerNotExistTemplateError

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

func ServerNotExistTemplateErrorf

func ServerNotExistTemplateErrorf(msg string, args ...any) *errors.Error

func ServerNotFound

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

func ServerNotFoundf

func ServerNotFoundf(msg string, args ...any) *errors.Error

func StatusProgressError

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

func StatusProgressErrorf

func StatusProgressErrorf(msg string, args ...any) *errors.Error

func SystemError

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

Common errors (0-999)

func SystemErrorf

func SystemErrorf(msg string, args ...any) *errors.Error

Common errors (0-999)

func TemplateVersionExistError

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

func TemplateVersionExistErrorf

func TemplateVersionExistErrorf(msg string, args ...any) *errors.Error

func TokenAuthError

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

func TokenAuthErrorf

func TokenAuthErrorf(msg string, args ...any) *errors.Error

func TransformError

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

func TransformErrorf

func TransformErrorf(msg string, args ...any) *errors.Error

func UpdateError

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

func UpdateErrorf

func UpdateErrorf(msg string, args ...any) *errors.Error

func UploadFileError

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

func UploadFileErrorf

func UploadFileErrorf(msg string, args ...any) *errors.Error

func UserDisableError

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

func UserDisableErrorf

func UserDisableErrorf(msg string, args ...any) *errors.Error

func UserPurviewError

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

func UserPurviewErrorf

func UserPurviewErrorf(msg string, args ...any) *errors.Error

func UserServiceError

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

Usercenter errors (4000-4999)

func UserServiceErrorf

func UserServiceErrorf(msg string, args ...any) *errors.Error

Usercenter errors (4000-4999)

func UsernameFormatError

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

func UsernameFormatErrorf

func UsernameFormatErrorf(msg string, args ...any) *errors.Error

func UsernameNotExistError

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

func UsernameNotExistErrorf

func UsernameNotExistErrorf(msg string, args ...any) *errors.Error

func VerifyCaptchaError

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

func VerifyCaptchaErrorf

func VerifyCaptchaErrorf(msg string, args ...any) *errors.Error

func VerifySignError

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

func VerifySignErrorf

func VerifySignErrorf(msg string, args ...any) *errors.Error

func WatchConfigureError

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

func WatchConfigureErrorf

func WatchConfigureErrorf(msg string, args ...any) *errors.Error

Types

type ErrorReason

type ErrorReason int32
const (
	// Common errors (0-999)
	ErrorReason_SystemError     ErrorReason = 0
	ErrorReason_FileSystemError ErrorReason = 1
	ErrorReason_NetWorkError    ErrorReason = 2
	ErrorReason_DatabaseError   ErrorReason = 3
	ErrorReason_ParamsError     ErrorReason = 4
	ErrorReason_TransformError  ErrorReason = 5
	ErrorReason_GetError        ErrorReason = 6
	ErrorReason_ListError       ErrorReason = 7
	ErrorReason_CreateError     ErrorReason = 8
	ErrorReason_ImportError     ErrorReason = 9
	ErrorReason_ExportError     ErrorReason = 10
	ErrorReason_UpdateError     ErrorReason = 11
	ErrorReason_DeleteError     ErrorReason = 12
	// Config service errors (1000-1999)
	ErrorReason_ConfigServiceError          ErrorReason = 1000
	ErrorReason_GetTrashError               ErrorReason = 1001
	ErrorReason_ListTrashError              ErrorReason = 1002
	ErrorReason_DeleteTrashError            ErrorReason = 1003
	ErrorReason_RevertTrashError            ErrorReason = 1004
	ErrorReason_BusinessValueTypeError      ErrorReason = 1005
	ErrorReason_ResourceValueTypeError      ErrorReason = 1006
	ErrorReason_RenderTemplateError         ErrorReason = 1007
	ErrorReason_TemplateVersionExistError   ErrorReason = 1008
	ErrorReason_ServerNotExistTemplateError ErrorReason = 1009
	ErrorReason_ConfigureVersionExistError  ErrorReason = 1010
	ErrorReason_WatchConfigureError         ErrorReason = 1011
	ErrorReason_TokenAuthError              ErrorReason = 1012
	ErrorReason_ServerNotFound              ErrorReason = 1013
	ErrorReason_PasswordError               ErrorReason = 1014
	ErrorReason_PasswordExpireError         ErrorReason = 1015
	ErrorReason_RefreshTokenError           ErrorReason = 1016
	ErrorReason_BroadcastConfigureError     ErrorReason = 1017
	// Resource service errors (2000-2999)
	ErrorReason_ResourceServiceError      ErrorReason = 2000
	ErrorReason_NoSupportStoreError       ErrorReason = 2001
	ErrorReason_NoSupportFileTypeError    ErrorReason = 2002
	ErrorReason_VerifySignError           ErrorReason = 2003
	ErrorReason_ChunkUploadError          ErrorReason = 2004
	ErrorReason_StatusProgressError       ErrorReason = 2005
	ErrorReason_UploadFileError           ErrorReason = 2006
	ErrorReason_InitStoreError            ErrorReason = 2007
	ErrorReason_FileFormatError           ErrorReason = 2008
	ErrorReason_NotExistFileError         ErrorReason = 2009
	ErrorReason_AlreadyExistFileNameError ErrorReason = 2010
	ErrorReason_AccessResourceError       ErrorReason = 2011
	ErrorReason_ExportFileNameDupError    ErrorReason = 2012
	ErrorReason_ExportTaskProcessError    ErrorReason = 2013
	ErrorReason_ExceedMaxSizeError        ErrorReason = 2014
	// Manager service errors (3000-3999)
	ErrorReason_ManagerServiceError    ErrorReason = 3000
	ErrorReason_DepartmentPurviewError ErrorReason = 3001
	ErrorReason_RolePurviewError       ErrorReason = 3002
	ErrorReason_UserPurviewError       ErrorReason = 3003
	ErrorReason_MenuPurviewError       ErrorReason = 3004
	ErrorReason_EditSystemDataError    ErrorReason = 3005
	ErrorReason_GenCaptchaError        ErrorReason = 3006
	ErrorReason_SendCaptchaError       ErrorReason = 3007
	ErrorReason_DeleteSystemDataError  ErrorReason = 3008
	ErrorReason_VerifyCaptchaError     ErrorReason = 3009
	ErrorReason_UsernameFormatError    ErrorReason = 3010
	ErrorReason_UsernameNotExistError  ErrorReason = 3011
	ErrorReason_UserDisableError       ErrorReason = 3012
	ErrorReason_RoleDisableError       ErrorReason = 3013
	ErrorReason_GenTokenError          ErrorReason = 3014
	ErrorReason_ParseTokenError        ErrorReason = 3015
	ErrorReason_ForbiddenError         ErrorReason = 3016
	ErrorReason_NotPermissionError     ErrorReason = 3017
	// Usercenter errors (4000-4999)
	ErrorReason_UserServiceError          ErrorReason = 4000
	ErrorReason_GenCaptchaTypeError       ErrorReason = 4001
	ErrorReason_NotExistEmailError        ErrorReason = 4002
	ErrorReason_OAuthLoginError           ErrorReason = 4003
	ErrorReason_NotUserError              ErrorReason = 4004
	ErrorReason_NotAppScopeError          ErrorReason = 4005
	ErrorReason_RsaDecodeError            ErrorReason = 4006
	ErrorReason_PasswordFormatError       ErrorReason = 4007
	ErrorReason_DisableRegisterError      ErrorReason = 4008
	ErrorReason_AlreadyExistEmailError    ErrorReason = 4009
	ErrorReason_AlreadyExistUsernameError ErrorReason = 4010
	ErrorReason_RegisterError             ErrorReason = 4011
	ErrorReason_BindError                 ErrorReason = 4012
	ErrorReason_LoginError                ErrorReason = 4013
	ErrorReason_ExistFeedbackError        ErrorReason = 4014
	ErrorReason_AlreadyBindError          ErrorReason = 4015
	ErrorReason_AppMaintenanceError       ErrorReason = 4016
	ErrorReason_ChannelCloseError         ErrorReason = 4017
	ErrorReason_AppNotBindChannelError    ErrorReason = 4018
	ErrorReason_ChannelNotBindUserError   ErrorReason = 4019
)

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