Versions in this module Expand all Collapse all v1 v1.0.0 May 24, 2019 Changes in this version + var ErrClassToMySQLCodes map[ErrClass]map[ErrCode]uint16 + var ErrCritical = ClassGlobal.New(CodeExecResultIsEmpty, "critical error %v") + var ErrResultUndetermined = ClassGlobal.New(CodeResultUndetermined, "execution result undetermined") + func Call(fn func() error) + func ErrorEqual(err1, err2 error) bool + func ErrorNotEqual(err1, err2 error) bool + func Log(err error) + func MustNil(err error, closeFuns ...func()) + type ErrClass int + const ClassAdmin + const ClassAutoid + const ClassDDL + const ClassDomain + const ClassEvaluator + const ClassExecutor + const ClassExpression + const ClassGlobal + const ClassJSON + const ClassKV + const ClassMeta + const ClassMockTikv + const ClassOptimizer + const ClassParser + const ClassPerfSchema + const ClassPlugin + const ClassPrivilege + const ClassSchema + const ClassServer + const ClassSession + const ClassStructure + const ClassTable + const ClassTiKV + const ClassTypes + const ClassVariable + const ClassXEval + func (ec ErrClass) EqualClass(err error) bool + func (ec ErrClass) New(code ErrCode, message string) *Error + func (ec ErrClass) NotEqualClass(err error) bool + func (ec ErrClass) String() string + type ErrCode int + const CodeExecResultIsEmpty + const CodeMissConnectionID + const CodeResultUndetermined + const CodeUnknown + type Error struct + func (e *Error) Class() ErrClass + func (e *Error) Code() ErrCode + func (e *Error) Equal(err error) bool + func (e *Error) Error() string + func (e *Error) FastGen(format string, args ...interface{}) error + func (e *Error) GenWithStack(format string, args ...interface{}) error + func (e *Error) GenWithStackByArgs(args ...interface{}) error + func (e *Error) Location() (file string, line int) + func (e *Error) MarshalJSON() ([]byte, error) + func (e *Error) NotEqual(err error) bool + func (e *Error) ToSQLError() *mysql.SQLError + func (e *Error) UnmarshalJSON(data []byte) error