errors

package
v4.13.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrScorecardInternal indicates a runtime error in Scorecard code.
	ErrScorecardInternal = errors.New("internal error")
	// ErrRepoUnreachable indicates Scorecard is unable to establish connection with the repository.
	ErrRepoUnreachable = errors.New("repo unreachable")
	// ErrorUnsupportedHost indicates the repo's host is unsupported.
	ErrorUnsupportedHost = errors.New("unsupported host")
	// ErrorInvalidURL indicates the repo's full URL was not passed.
	ErrorInvalidURL = errors.New("invalid repo flag")
	// ErrorShellParsing indicates there was an error when parsing shell code.
	ErrorShellParsing = errors.New("error parsing shell code")
	// ErrorUnsupportedCheck indicates check cannot be run for given request.
	ErrorUnsupportedCheck = errors.New("check is not supported for this request")
	// ErrorCheckRuntime indicates an individual check had a runtime error.
	ErrorCheckRuntime = errors.New("check runtime error")
)

Functions

func CreateInternal

func CreateInternal(e error, msg string) error

CreateInternal creates internal error, not using any of the errors listed in public.go.

func GetName

func GetName(err error) string

GetName returns the name of the error.

func WithMessage

func WithMessage(e error, msg string) error

WithMessage wraps any of the errors listed above. For examples, see errors/errors.md.

Types

This section is empty.

Jump to

Keyboard shortcuts

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