Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewErrorFormatFuncWithPrefix ¶
func NewErrorFormatFuncWithPrefix(prefix string) multierror.ErrorFormatFunc
NewErrorFormatFuncWithPrefix creates a new multierror.ErrorFormatFunc which can be used as an ErrorFormat on multierror.Error instances. The error string is prefixed with <prefix>, all errors are concatenated at the end. This is similar to multierror.ListFormatFunc but does not use any escape sequences, which will look weird in the status of Kubernetes objects or controller logs.
Types ¶
type WithExitCode ¶
WithExitCode annotates an error with an exit code.
func (WithExitCode) ExitCode ¶
func (w WithExitCode) ExitCode() int
ExitCode returns the exit code associated with this error.
func (WithExitCode) Unwrap ¶
func (w WithExitCode) Unwrap() error
Unwrap returns the underlying error.
Click to show internal directories.
Click to hide internal directories.