Documentation ¶
Index ¶
- Variables
- func IsEOF(err error) bool
- func IsIOError(err error) bool
- func IsRecoverAbleError(err error) bool
- func IsUnexpectedErr(err error) bool
- func NewEOF() error
- func NewIOErr(msg string) error
- func NewParserError(msg string) error
- type Error
- type ErrorCode
- type ErrorWithCode
- type MockTemporaryError
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundErr = NewWithCode(NOT_FOUND, "not found")
Functions ¶
func IsRecoverAbleError ¶
func IsUnexpectedErr ¶
func NewParserError ¶
Types ¶
type ErrorCode ¶
type ErrorCode int
const ( Undefined_Err ErrorCode = 1000 GENERAL_ERR ErrorCode = 1001 NOT_FOUND ErrorCode = 1002 IOErr ErrorCode = 1003 CovnerterErr ErrorCode = 1004 EOF ErrorCode = 1005 ParserError ErrorCode = 2001 PlanError ErrorCode = 2101 ExecutorError ErrorCode = 2201 StreamTableError ErrorCode = 3000 RuleErr ErrorCode = 4000 ConfKeyError ErrorCode = 5000 )
func GetErrorCode ¶
type ErrorWithCode ¶
type MockTemporaryError ¶
type MockTemporaryError struct{}
func (*MockTemporaryError) Error ¶
func (e *MockTemporaryError) Error() string
func (*MockTemporaryError) Temporary ¶
func (e *MockTemporaryError) Temporary() bool
Click to show internal directories.
Click to hide internal directories.