yerrors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrTypeEmptyQuery      = 1
	ErrTypeUnsupportedType = 2
	ErrTypeOutOfRange      = 3
	ErrTypeNilResult       = 4
	ErrTypeTimeOut         = 5
)

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 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