Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrSilenceExitCode ¶
type ErrSilenceExitCode struct {
// contains filtered or unexported fields
}
ErrSilenceExitCode is an error that signals a process should exit with a specific code without printing an error message
func IsSilenceExitCode ¶
func IsSilenceExitCode(err error) (*ErrSilenceExitCode, bool)
IsSilenceExitCode checks if an error is an ErrSilenceExitCode
func NewSilenceExitCode ¶
func NewSilenceExitCode(exitCode int) *ErrSilenceExitCode
NewSilenceExitCode creates a new ErrSilenceExitCode with the given exit code
func (*ErrSilenceExitCode) Error ¶
func (e *ErrSilenceExitCode) Error() string
Error implements the error interface
func (*ErrSilenceExitCode) SilenceExitCode ¶
func (e *ErrSilenceExitCode) SilenceExitCode() int
ExitCode returns the exit code that should be used
Click to show internal directories.
Click to hide internal directories.