errors

package
v2.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

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

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 CreateInternal added in v2.1.3

func CreateInternal(e error, msg string) error

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

func GetName added in v2.1.3

func GetName(err error) string

GetName returns the name of the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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