errutil

package
v2.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleExitCoder

func HandleExitCoder(err error)

func IsErrConnectionRefused

func IsErrConnectionRefused(err error) bool

IsErrConnectionRefused return whether err is "connect: connection refused"

Types

type ExitCodeError

type ExitCodeError struct {
	// contains filtered or unexported fields
}

ExitCodeError is to allow the program to exit with status code without outputting an error message.

func NewExitCoderErr

func NewExitCoderErr(exitCode int) ExitCodeError

func (ExitCodeError) Error

func (e ExitCodeError) Error() string

func (ExitCodeError) ExitCode

func (e ExitCodeError) ExitCode() int

type ExitCoder

type ExitCoder interface {
	error
	ExitCode() int
}

Jump to

Keyboard shortcuts

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