package
Version:
v1.6.3
Opens a new window with list of versions in this module.
Published: Aug 30, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package cberr contains all types/interfaces related to customized errors for cli.
ErrorExitCode returns the exit code of the root error, if available.
ErrorMessage returns the human-readable message of the error, if available.
Code is the type of machine-readable error code.
const (
UnclassifiedErr Code = iota
ConfigErr
HTTPConnectionErr
HTTPUnsuccessfulResponseErr
HTTPNotFoundErr
HTTPNotAllowedErr
SBOMGenerationErr
LayersGenerationErr
ScanFailedErr
ValidateFailedErr
TimeoutErr
DisplayErr
PolicyViolationErr
)
ErrCode types.
ErrorCode returns the code of the root error, if available.
Error is the customized error type for cli, implement the builtin error interface.
NewError initializes a new cli-error.
Error returns the string representation of the error message.
ExitCode returns the code for this error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.