errors

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 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:  "SystemError",
		2:  "DatabaseError",
		3:  "TransformError",
		4:  "GetError",
		5:  "ListError",
		6:  "CreateError",
		7:  "ImportError",
		8:  "ExportError",
		9:  "UpdateError",
		10: "DeleteError",
		11: "GetTrashError",
		12: "ListTrashError",
		13: "DeleteTrashError",
		14: "RevertTrashError",
		15: "DepartmentPermissionsError",
		16: "RolePermissionsError",
		17: "UserPermissionsError",
		18: "MenuPermissionsError",
		19: "EditSystemDataError",
		20: "GenCaptchaError",
		21: "SendCaptchaError",
		22: "DeleteSystemDataError",
		23: "VerifyCaptchaError",
		24: "PasswordError",
		25: "PasswordExpireError",
		26: "RefreshTokenError",
		27: "UsernameFormatError",
		28: "UsernameNotExistError",
		29: "UserDisableError",
		30: "RoleDisableError",
		31: "GenTokenError",
		32: "ParseTokenError",
		33: "ForbiddenError",
		34: "ResourceServerError",
	}
	ErrorReason_value = map[string]int32{
		"ParamsError":                0,
		"SystemError":                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,
		"DepartmentPermissionsError": 15,
		"RolePermissionsError":       16,
		"UserPermissionsError":       17,
		"MenuPermissionsError":       18,
		"EditSystemDataError":        19,
		"GenCaptchaError":            20,
		"SendCaptchaError":           21,
		"DeleteSystemDataError":      22,
		"VerifyCaptchaError":         23,
		"PasswordError":              24,
		"PasswordExpireError":        25,
		"RefreshTokenError":          26,
		"UsernameFormatError":        27,
		"UsernameNotExistError":      28,
		"UserDisableError":           29,
		"RoleDisableError":           30,
		"GenTokenError":              31,
		"ParseTokenError":            32,
		"ForbiddenError":             33,
		"ResourceServerError":        34,
	}
)

Enum value maps for ErrorReason.

View Source
var File_api_manager_errors_manager_error_reason_proto protoreflect.FileDescriptor

Functions

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 DeleteSystemDataError

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

func DeleteTrashError

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

func DepartmentPermissionsError

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

func EditSystemDataError

func EditSystemDataError(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 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 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 IsDepartmentPermissionsError

func IsDepartmentPermissionsError(err error) bool

func IsEditSystemDataError

func IsEditSystemDataError(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 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 IsMenuPermissionsError

func IsMenuPermissionsError(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 IsRefreshTokenError

func IsRefreshTokenError(err error) bool

func IsResourceServerError

func IsResourceServerError(err error) bool

func IsRevertTrashError

func IsRevertTrashError(err error) bool

func IsRoleDisableError

func IsRoleDisableError(err error) bool

func IsRolePermissionsError

func IsRolePermissionsError(err error) bool

func IsSendCaptchaError

func IsSendCaptchaError(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 IsUserPermissionsError

func IsUserPermissionsError(err error) bool

func IsUsernameFormatError

func IsUsernameFormatError(err error) bool

func IsUsernameNotExistError

func IsUsernameNotExistError(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 MenuPermissionsError(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 RefreshTokenError

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

func ResourceServerError

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

func RevertTrashError

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

func RoleDisableError

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

func RolePermissionsError

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

func SendCaptchaError

func SendCaptchaError(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 UserPermissionsError

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

func UsernameFormatError

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

func UsernameNotExistError

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

func VerifyCaptchaError

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

Types

type ErrorReason

type ErrorReason int32
const (
	ErrorReason_ParamsError                ErrorReason = 0
	ErrorReason_SystemError                ErrorReason = 1
	ErrorReason_DatabaseError              ErrorReason = 2
	ErrorReason_TransformError             ErrorReason = 3
	ErrorReason_GetError                   ErrorReason = 4
	ErrorReason_ListError                  ErrorReason = 5
	ErrorReason_CreateError                ErrorReason = 6
	ErrorReason_ImportError                ErrorReason = 7
	ErrorReason_ExportError                ErrorReason = 8
	ErrorReason_UpdateError                ErrorReason = 9
	ErrorReason_DeleteError                ErrorReason = 10
	ErrorReason_GetTrashError              ErrorReason = 11
	ErrorReason_ListTrashError             ErrorReason = 12
	ErrorReason_DeleteTrashError           ErrorReason = 13
	ErrorReason_RevertTrashError           ErrorReason = 14
	ErrorReason_DepartmentPermissionsError ErrorReason = 15
	ErrorReason_RolePermissionsError       ErrorReason = 16
	ErrorReason_UserPermissionsError       ErrorReason = 17
	ErrorReason_MenuPermissionsError       ErrorReason = 18
	ErrorReason_EditSystemDataError        ErrorReason = 19
	ErrorReason_GenCaptchaError            ErrorReason = 20
	ErrorReason_SendCaptchaError           ErrorReason = 21
	ErrorReason_DeleteSystemDataError      ErrorReason = 22
	ErrorReason_VerifyCaptchaError         ErrorReason = 23
	ErrorReason_PasswordError              ErrorReason = 24
	ErrorReason_PasswordExpireError        ErrorReason = 25
	ErrorReason_RefreshTokenError          ErrorReason = 26
	ErrorReason_UsernameFormatError        ErrorReason = 27
	ErrorReason_UsernameNotExistError      ErrorReason = 28
	ErrorReason_UserDisableError           ErrorReason = 29
	ErrorReason_RoleDisableError           ErrorReason = 30
	ErrorReason_GenTokenError              ErrorReason = 31
	ErrorReason_ParseTokenError            ErrorReason = 32
	ErrorReason_ForbiddenError             ErrorReason = 33
	ErrorReason_ResourceServerError        ErrorReason = 34
)

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