errors

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RetryError occurs when checks fail after exhausting all retry attempts.
	RetryError = "RetryError"
	// LowConfidenceError shows a low-confidence result.
	LowConfidenceError = "LowConfidenceError"
	// UnknownError for all error types not handled.
	UnknownError = "UnknownError"
)

Variables

View Source
var (
	ErrScorecardInternal = errors.New("internal error")
	ErrRepoUnreachable   = errors.New("repo unreachable")
)

UPGRADEv2: delete other files in folder. nolint

Functions

func Create

func Create(e error, msg string) error

Create a public error using any of the errors listed above. For examples, see errors/errors.md.

func GetErrorName

func GetErrorName(err error) string

func MakeLowConfidenceError

func MakeLowConfidenceError(err error) error

func MakeRetryError

func MakeRetryError(err error) error

Types

type ErrLowConfidence

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

func (*ErrLowConfidence) Error

func (err *ErrLowConfidence) Error() string

func (*ErrLowConfidence) Unwrap

func (err *ErrLowConfidence) Unwrap() error

type ErrRetry

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

func (*ErrRetry) Error

func (err *ErrRetry) Error() string

func (*ErrRetry) Unwrap

func (err *ErrRetry) Unwrap() error

Jump to

Keyboard shortcuts

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