errors

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeOfflineIllegalLink = 10004
	CodeOfflineTaskExists  = 10008
)
View Source
const (
	CodeFileOrderNotSupported = 20130827
)

Variables

View Source
var (
	ErrNotLogin = errors.New("user not login")

	ErrCaptchaRequired = errors.New("please resolve captcha")

	ErrOfflineInvalidLink = errors.New("invalid download link")

	ErrPasswordIncorrect    = errors.New("password incorrect")
	ErrLoginTwoStepVerify   = errors.New("requires two-step verification")
	ErrAccountNotBindMobile = errors.New("account not binds mobile")
	ErrCredentialInvalid    = errors.New("credential invalid")
	ErrSessionExited        = errors.New("session exited")

	ErrQrcodeExpired = errors.New("qrcode expired")

	// ErrUnexpected is the fall-back error whose code is not handled.
	ErrUnexpected = errors.New("unexpected error")

	// ErrExist means an item which you want to create is already existed.
	ErrExist = errors.New("target already exists")
	// ErrNotExist means an item which you find is not existed.
	ErrNotExist = errors.New("target does not exist")

	ErrInvalidOperation = errors.New("invalid operation")

	ErrInvalidParameters = errors.New("invalid parameters")

	// ErrReachEnd means there are no more item.
	ErrReachEnd = errors.New("reach the end")

	ErrUploadDisabled = errors.New("upload function is disabled")

	ErrUploadNothing = errors.New("nothing ot upload")

	ErrUploadTooLarge = errors.New("upload reach the limit")

	ErrInitUploadUnknowStatus = errors.New("unknown status from initupload")

	ErrImportDirectory = errors.New("can not import directory")

	ErrDownloadEmpty = errors.New("can not get download URL")

	ErrDownloadDirectory = errors.New("can not download directory")

	ErrVideoNotReady = errors.New("video is not ready")

	ErrEmptyList = errors.New("list is empty")
)
View Source
var ErrInvalidResp = errors.New("invalid resp")
View Source
var ErrUnsupportedResult = errors.New("unsupported result")

Functions

func Get

func Get(code int) error

Types

type ErrFileOrderNotSupported

type ErrFileOrderNotSupported struct {
	Order string
	Asc   int
}

func (*ErrFileOrderNotSupported) Error

func (e *ErrFileOrderNotSupported) Error() string

Jump to

Keyboard shortcuts

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