errs

package
v0.0.0-...-3468133 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrVersionNotFound 版本不存在
	ErrVersionNotFound = errors.New("version not found")
	// ErrPackageNotFound 版本包不存在
	ErrPackageNotFound = errors.New("installation package not found")
)
View Source
var (
	// ErrUnsupportedChecksumAlgorithm 不支持的校验和算法
	ErrUnsupportedChecksumAlgorithm = errors.New("unsupported checksum algorithm")
	// ErrChecksumNotMatched 校验和不匹配
	ErrChecksumNotMatched = errors.New("file checksum does not match the computed checksum")
	// ErrChecksumFileNotFound 校验和文件不存在
	ErrChecksumFileNotFound = errors.New("checksum file not found")
)

Functions

func NewDownloadError

func NewDownloadError(url string, err error) error

NewDownloadError 返回下载失败错误实例

func NewURLUnreachableError

func NewURLUnreachableError(url string, err error) error

NewURLUnreachableError 返回URL不可达错误实例

Types

type DownloadError

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

DownloadError 下载失败错误

func (DownloadError) Err

func (e DownloadError) Err() error

Err 返回错误对象

func (DownloadError) Error

func (e DownloadError) Error() string

Error 返回错误字符串

func (DownloadError) URL

func (e DownloadError) URL() string

URL 返回资源URL

type URLUnreachableError

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

URLUnreachableError URL不可达错误

func (URLUnreachableError) Err

func (e URLUnreachableError) Err() error

func (URLUnreachableError) Error

func (e URLUnreachableError) Error() string

func (URLUnreachableError) URL

func (e URLUnreachableError) URL() string

Jump to

Keyboard shortcuts

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