errors

package
v0.0.0-...-9a2ebf3 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: "DeleteNotDisabledWorkerError",
		16: "CronSpecError",
		17: "EnableCronError",
		18: "DisableCronError",
		19: "DeleteNotDisabledTaskError",
		20: "UpdateNotDisableTaskError",
		21: "NotSupportTaskTypeError",
		22: "ExecTaskFailError",
		23: "WorkerNotAvailableError",
		24: "CancelTaskError",
	}
	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,
		"DeleteNotDisabledWorkerError": 14,
		"CronSpecError":                16,
		"EnableCronError":              17,
		"DisableCronError":             18,
		"DeleteNotDisabledTaskError":   19,
		"UpdateNotDisableTaskError":    20,
		"NotSupportTaskTypeError":      21,
		"ExecTaskFailError":            22,
		"WorkerNotAvailableError":      23,
		"CancelTaskError":              24,
	}
)

Enum value maps for ErrorReason.

View Source
var File_api_cron_errors_cron_error_reason_proto protoreflect.FileDescriptor

Functions

func CancelTaskError

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

func CreateError

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

func CronSpecError

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

func DatabaseError

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

func DeleteError

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

func DeleteNotDisabledTaskError

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

func DeleteNotDisabledWorkerError

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

func DeleteTrashError

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

func DisableCronError

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

func EnableCronError

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

func ExecTaskFailError

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

func ExportError

func ExportError(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 IsCancelTaskError

func IsCancelTaskError(err error) bool

func IsCreateError

func IsCreateError(err error) bool

func IsCronSpecError

func IsCronSpecError(err error) bool

func IsDatabaseError

func IsDatabaseError(err error) bool

func IsDeleteError

func IsDeleteError(err error) bool

func IsDeleteNotDisabledTaskError

func IsDeleteNotDisabledTaskError(err error) bool

func IsDeleteNotDisabledWorkerError

func IsDeleteNotDisabledWorkerError(err error) bool

func IsDeleteTrashError

func IsDeleteTrashError(err error) bool

func IsDisableCronError

func IsDisableCronError(err error) bool

func IsEnableCronError

func IsEnableCronError(err error) bool

func IsExecTaskFailError

func IsExecTaskFailError(err error) bool

func IsExportError

func IsExportError(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 IsNotSupportTaskTypeError

func IsNotSupportTaskTypeError(err error) bool

func IsParamsError

func IsParamsError(err error) bool

func IsRevertTrashError

func IsRevertTrashError(err error) bool

func IsTransformError

func IsTransformError(err error) bool

func IsUpdateError

func IsUpdateError(err error) bool

func IsUpdateNotDisableTaskError

func IsUpdateNotDisableTaskError(err error) bool

func IsWorkerNotAvailableError

func IsWorkerNotAvailableError(err error) bool

func ListError

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

func ListTrashError

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

func NotSupportTaskTypeError

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

func ParamsError

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

func RevertTrashError

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

func TransformError

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

func UpdateError

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

func UpdateNotDisableTaskError

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

func WorkerNotAvailableError

func WorkerNotAvailableError(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_DeleteNotDisabledWorkerError ErrorReason = 14
	ErrorReason_CronSpecError                ErrorReason = 16
	ErrorReason_EnableCronError              ErrorReason = 17
	ErrorReason_DisableCronError             ErrorReason = 18
	ErrorReason_DeleteNotDisabledTaskError   ErrorReason = 19
	ErrorReason_UpdateNotDisableTaskError    ErrorReason = 20
	ErrorReason_NotSupportTaskTypeError      ErrorReason = 21
	ErrorReason_ExecTaskFailError            ErrorReason = 22
	ErrorReason_WorkerNotAvailableError      ErrorReason = 23
	ErrorReason_CancelTaskError              ErrorReason = 24
)

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