Help us shape the future of Go! Take the 2026 Go Developer Survey

errs

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCrawlNotFound            = errors.New("crawl notFound")
	ErrCoverDownLoadZeroSize    = errors.New("coverFile downloader zeroSize after multiple attempts")
	ErrUnknownResCrawlLsType    = errors.New("unknownResource ls crawl type")
	ErrLsGroupUnavailableOnTorr = errors.New("command `ls group` is unavailable On TorrentType")

	ErrBgmTVApiPrefix = errors.New("bgmTV api")

	ErrTorrentNotFound           = errors.New("there are no torrentFiles on qbt")
	ErrTorrentOnSavePathNotFound = errors.New("there are no torrentFiles on savepath of a subject")
	ErrQbtDataNotFound           = errors.New("no data found from the apiRequest (should be found)")
	ErrSubjectAlreadyExisted     = errors.New("subject already existed")
	ErrSubjectNotFound           = errors.New("subject notFound")
	ErrBgmUrlNotFoundOnMikan     = errors.New("bgm url notFound on anicat")
	ErrUndefinedCrawlListType    = errors.New("undefined crawlList type")
	WarnRssRuleNotMatched        = errors.New("there is no any series mached,check your auto-downloader rule")

	ErrCannotCaptureEpisNum = errors.New("can not capture episodeNum from text")
	ErrItemAlreadyPushed    = errors.New("item was already pushed")
	ErrNoLinkFoundOnRssFeed = errors.New("can not found link on feed")
	ErrConnHajcked          = errors.New("conn hajacked")
)

Functions

func Custom

func Custom(format string, a ...any) error

func ErrTransfer

func ErrTransfer(src error, dst *error)

func HasError

func HasError(t *testing.T, err error, message ...string)

func NoError

func NoError(t *testing.T, err error, message ...string)

func PanicErr

func PanicErr(err error, ef func())

func PanicRedirect added in v0.0.6

func PanicRedirect(file *os.File) error

func RequireNonErr

func RequireNonErr(err error) bool

Types

type ErrWrapper

type ErrWrapper struct {
	// contains filtered or unexported fields
}

func (*ErrWrapper) Error

func (wp *ErrWrapper) Error() error

func (*ErrWrapper) Handle

func (wp *ErrWrapper) Handle(t Thrower)

func (*ErrWrapper) Reset

func (wp *ErrWrapper) Reset()

type MultiErr

type MultiErr struct {
	// contains filtered or unexported fields
}

func (*MultiErr) Add

func (me *MultiErr) Add(e error)

func (*MultiErr) Err

func (me *MultiErr) Err() error

type Thrower

type Thrower func() error

Jump to

Keyboard shortcuts

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