Documentation
¶
Overview ¶
Package errors defines all errors returned to users by Scorecard library.
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 ¶
Create a public error using any of the errors listed above. For examples, see errors/errors.md.
func CreateInternal ¶ added in v2.1.3
CreateInternal creates an internal error, not using any of the errors listed above.
func MakeLowConfidenceError ¶
MakeLowConfidenceError returns a wrapped error of type ErrLowConfidence.
func MakeRetryError ¶
MakeRetryError returns a wrapped error of type ErrRetry.
Types ¶
type ErrLowConfidence ¶
type ErrLowConfidence struct {
// contains filtered or unexported fields
}
ErrLowConfidence is returned when check result is inconclusive.
Click to show internal directories.
Click to hide internal directories.