errors

package
v1.2112.0-pre4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSQLTypeConflict = New(-1, fmt.Errorf("不能同时提交 DDL 和 DML 语句"))
)

Functions

func New

func New(code ErrorCode, err error) error

Types

type CodeError

type CodeError struct {
	// contains filtered or unexported fields
}

func NewNotImplemented

func NewNotImplemented(feature string) *CodeError

func (*CodeError) Code

func (e *CodeError) Code() int

func (*CodeError) Error

func (e *CodeError) Error() string

type ErrorCode

type ErrorCode int
const (
	StatusOK                   ErrorCode = 0
	ConnectStorageError        ErrorCode = 5001
	ConnectRemoteDatabaseError ErrorCode = 5002
	ReadUploadFileError        ErrorCode = 5003
	ParseMyBatisXMLFileError   ErrorCode = 5006
	WriteDataToTheFileError    ErrorCode = 5007

	TaskNotExist      ErrorCode = 4006
	TaskActionInvalid ErrorCode = 4009

	TaskRunning    ErrorCode = 1001
	TaskActionDone ErrorCode = 1002

	LoginAuthFail ErrorCode = 4001
	DataExist     ErrorCode = 4010
	DataNotExist  ErrorCode = 4011
	DataConflict  ErrorCode = 4012
	DataInvalid   ErrorCode = 4013
	DataParseFail ErrorCode = 4014

	DriverNotExist ErrorCode = 5001
	LoadDriverFail ErrorCode = 5008

	FeatureNotImplemented ErrorCode = 7001
)

Jump to

Keyboard shortcuts

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