Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 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) + type ErrClass int + const ClassAutoid + const ClassDDL + const ClassDomain + const ClassEvaluator + const ClassExecutor + const ClassExpression + const ClassGlobal + const ClassInspectkv + const ClassJSON + const ClassKV + const ClassMeta + const ClassMockTikv + const ClassOptimizer + const ClassOptimizerPlan + const ClassParser + const ClassPerfSchema + const ClassPrivilege + const ClassSchema + const ClassServer + 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) Gen(format string, args ...interface{}) *Error + func (e *Error) GenByArgs(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