Documentation ¶
Index ¶
- Variables
- func ConnectStorageErrWrapper(err error) error
- func HttpRequestFormatErrWrapper(err error) error
- func New(code ErrorCode, err error) error
- func NewAccessDeniedErr(format string, a ...interface{}) error
- func NewDataInvalidErr(format string, a ...interface{}) error
- func NewDataNotExistErr(format string, a ...interface{}) error
- func NewNotImplementedError(format string, a ...interface{}) error
- func NewUserDisabledErr(format string, a ...interface{}) error
- func NewUserNotPermissionError(op string) error
- type CodeError
- type ErrorCode
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSQLTypeConflict = New(-1, fmt.Errorf("不能同时提交 DDL 和 DML 语句"))
)
Functions ¶
func ConnectStorageErrWrapper ¶ added in v1.2202.0
func HttpRequestFormatErrWrapper ¶ added in v1.2202.0
func NewAccessDeniedErr ¶ added in v1.2202.0
func NewDataInvalidErr ¶ added in v1.2202.0
func NewDataNotExistErr ¶ added in v1.2202.0
func NewNotImplementedError ¶ added in v1.2202.0
func NewUserDisabledErr ¶ added in v1.2202.0
func NewUserNotPermissionError ¶ added in v1.2204.0
Types ¶
type CodeError ¶
type CodeError struct {
// contains filtered or unexported fields
}
func NewNotImplemented ¶
type ErrorCode ¶
type ErrorCode int
const ( StatusOK ErrorCode = 0 TaskRunning ErrorCode = 1001 TaskActionDone ErrorCode = 1002 HttpRequestFormatError ErrorCode = 2001 ErrAccessDeniedError ErrorCode = 3001 EnterpriseEditionFeatures ErrorCode = 3002 LoginAuthFail ErrorCode = 4001 UserDisabled ErrorCode = 4005 TaskNotExist ErrorCode = 4006 TaskActionInvalid ErrorCode = 4009 DataExist ErrorCode = 4010 DataNotExist ErrorCode = 4011 DataConflict ErrorCode = 4012 DataInvalid ErrorCode = 4013 DataParseFail ErrorCode = 4014 UserNotPermission ErrorCode = 4015 ConnectStorageError ErrorCode = 5001 ConnectRemoteDatabaseError ErrorCode = 5002 ReadUploadFileError ErrorCode = 5003 ParseMyBatisXMLFileError ErrorCode = 5006 WriteDataToTheFileError ErrorCode = 5007 DriverNotExist ErrorCode = 5001 LoadDriverFail ErrorCode = 5008 FeatureNotImplemented ErrorCode = 7001 SQLAnalysisSQLIsNotSupported ErrorCode = 8001 // 需要隐藏所有错误细节或不确定时使用 GenericError ErrorCode = 9999 )
Click to show internal directories.
Click to hide internal directories.