Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAboveSeverityThreshold indicates when a vulnerability severity is discovered that is above the given --fail-on severity value ErrAboveSeverityThreshold = NewExpectedErr("discovered vulnerabilities at or above the severity threshold") )
Functions ¶
This section is empty.
Types ¶
type ExpectedErr ¶
type ExpectedErr struct {
Err error
}
ExpectedErr represents a class of expected errors that grype may produce.
func NewExpectedErr ¶
func NewExpectedErr(msgFormat string, args ...interface{}) ExpectedErr
New generates a new ExpectedErr.
func (ExpectedErr) Error ¶
func (e ExpectedErr) Error() string
Error returns a string representing the underlying error condition.
Click to show internal directories.
Click to hide internal directories.