yerrors

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-3.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ErrTypeEmptyQuery      = 1 // 这个之前拼错了,为了兼容保留下来
	ErrTypeEmptyQueue      = 1 // 队列为空, broker获取任务时用到
	ErrTypeUnsupportedType = 2 // 不支持此参数类型
	ErrTypeOutOfRange      = 3 // 暂时没用
	ErrTypeNilResult       = 4 // 任务结果为空
	ErrTypeTimeOut         = 5 // broker,backend超时
	ErrTypeServerStop      = 6 // 服务已停止

	ErrTypeSendMsg    = 7 // 通过broker发送消息失败,目前工作流发送下一个任务时会用到
	ErrTypeNilBackend = 8

	ErrTypeAbortTask = 9
)

Variables

This section is empty.

Functions

func IsEqual

func IsEqual(err error, errType int) bool

Types

type ErrAbortTask

type ErrAbortTask struct {
	Msg string
}

func (ErrAbortTask) Error

func (e ErrAbortTask) Error() string

func (ErrAbortTask) Type

func (e ErrAbortTask) Type() int

type ErrEmptyQueue

type ErrEmptyQueue struct {
}

func (ErrEmptyQueue) Error

func (e ErrEmptyQueue) Error() string

func (ErrEmptyQueue) Type

func (e ErrEmptyQueue) Type() int

type ErrNilBackend

type ErrNilBackend struct {
}

func (ErrNilBackend) Error

func (e ErrNilBackend) Error() string

func (ErrNilBackend) Type

func (e ErrNilBackend) 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 ErrSendMsg

type ErrSendMsg struct {
	Msg string
}

func (ErrSendMsg) Error

func (e ErrSendMsg) Error() string

func (ErrSendMsg) Type

func (e ErrSendMsg) Type() int

type ErrServerStop

type ErrServerStop struct {
}

func (ErrServerStop) Error

func (e ErrServerStop) Error() string

func (ErrServerStop) Type

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