errs

package
v0.0.100 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL