errs

package
v0.0.178 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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