yerrors

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrTypeEmptyQuery      = 1 // 队列为空, broker获取任务时用到
	ErrTypeUnsupportedType = 2 // 不支持此参数类型
	ErrTypeOutOfRange      = 3 // 暂时没用
	ErrTypeNilResult       = 4 // 任务结果为空
	ErrTypeTimeOut         = 5 // broker,backend超时
	ErrTypeServerStop      = 6 // 服务已停止
)

Variables

This section is empty.

Functions

func IsEqual

func IsEqual(err error, errType int) bool

Types

type ErrEmptyQuery

type ErrEmptyQuery struct {
}

func (ErrEmptyQuery) Error

func (e ErrEmptyQuery) Error() string

func (ErrEmptyQuery) Type

func (e ErrEmptyQuery) Type() int

type ErrNilResult

type ErrNilResult struct {
}

func (ErrNilResult) Error

func (e ErrNilResult) Error() string

func (ErrNilResult) Type

func (e ErrNilResult) Type() int

type ErrOutOfRange

type ErrOutOfRange struct {
}

func (ErrOutOfRange) Error

func (e ErrOutOfRange) Error() string

func (ErrOutOfRange) Type

func (e ErrOutOfRange) Type() int

type ErrServerStop added in v2.2.0

type ErrServerStop struct {
}

func (ErrServerStop) Error added in v2.2.0

func (e ErrServerStop) Error() string

func (ErrServerStop) Type added in v2.2.0

func (e ErrServerStop) Type() int

type ErrTimeOut

type ErrTimeOut struct {
}

func (ErrTimeOut) Error

func (e ErrTimeOut) Error() string

func (ErrTimeOut) Type

func (e ErrTimeOut) Type() int

type ErrUnsupportedType

type ErrUnsupportedType struct {
	T string
}

func (ErrUnsupportedType) Error

func (e ErrUnsupportedType) Error() string

func (ErrUnsupportedType) Type

func (e ErrUnsupportedType) Type() int

type YTaskError

type YTaskError interface {
	Error() string
	Type() int
}

Jump to

Keyboard shortcuts

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