errors

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// mysql errr number reference: https://mariadb.com/kb/en/mariadb-error-codes/
	ErrNoDuplicateEntry = 1062
	ErrNoKeyNotFound    = 1032

	ErrorUnknown         = "UnknownError"      // 数据库错误
	ErrorKeyIsDuplicated = "DBKeyIsDuplicated" // 数据库key重复
	ErrorRecordNotFound  = "RecordNotFound"    //记录不存在
)
View Source
const (
	CPUNotFound           = "CPUNotFound"
	MemoryNotFound        = "MemoryNotFound"
	QueueResourceNotMatch = "QueueResourceNotMatch"
	InvalidScaleResource  = "InvalidScaleResource" // 扩展资源类型不支持
)

Variables

This section is empty.

Functions

func CPUNotFoundError

func CPUNotFoundError() error

func EmptyClusterNameError

func EmptyClusterNameError() error

func EmptyFSIDError

func EmptyFSIDError() error

func EmptyFlavourError

func EmptyFlavourError() error

func EmptyJobCommandError

func EmptyJobCommandError() error

func EmptyJobIDError

func EmptyJobIDError() error

func EmptyJobImageError

func EmptyJobImageError() error

func EmptyJobModeError

func EmptyJobModeError() error

func EmptyJobNameError

func EmptyJobNameError() error

func EmptyJobPortError

func EmptyJobPortError() error

func EmptyJobTypeError

func EmptyJobTypeError() error

func EmptyQueueNameError

func EmptyQueueNameError() error

func EmptyReplicasError

func EmptyReplicasError() error

func EmptySparkMainFileError

func EmptySparkMainFileError() error

func EmptyUserNameError

func EmptyUserNameError() error

func GetErrorCode added in v0.14.3

func GetErrorCode(err error) string

func InvalidFlavourError

func InvalidFlavourError(flavour string) error

func InvalidJobModeError

func InvalidJobModeError(mode string) error

func InvalidJobPriorityError

func InvalidJobPriorityError(priority string) error

func InvalidJobTypeError

func InvalidJobTypeError(jobType string) error

func InvalidScaleResourceError

func InvalidScaleResourceError(resourceName string) error

func JobFileNotFound

func JobFileNotFound(path string) error

func JobIDNotFoundError

func JobIDNotFoundError(jobID string) error

func MemoryNotFoundError

func MemoryNotFoundError() error

func QueueResourceNotMatchError

func QueueResourceNotMatchError(cpu, mem string) error

func UnSupportedOperate

func UnSupportedOperate(action string) error

UnSupportedOperate indicate action is not supported

Types

type GormErr added in v0.14.3

type GormErr struct {
	Number  int    `json:"Number"`
	Message string `json:"Message"`
}

type PFError

type PFError struct {
	RequestID string `json:"requestID"`
	Code      string `json:"code"`
	Message   string `json:"message"`
}

func (*PFError) Error

func (e *PFError) Error() string

Jump to

Keyboard shortcuts

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