err

package
v0.0.0-...-bc84e80 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrno

func CheckErrno(err error, val syscall.Errno) bool

func ConvertErrno

func ConvertErrno(err error) syscall.Errno

func ExecErrorConv

func ExecErrorConv(err error) (r int, msg string)

Types

type ExitCoder

type ExitCoder interface {
	error
	ExitCode() int
}

func ExitError

func ExitError(exitCode int, info error) ExitCoder

func ExitErrorV

func ExitErrorV(exitCode int, msg ...interface{}) ExitCoder

func ExitErrorf

func ExitErrorf(exitCode int, format string, msg ...interface{}) ExitCoder

type SysCaller

type SysCaller interface {
	error
	Errno() syscall.Errno
}

func SysError

func SysError(errno uint, info error) SysCaller

Jump to

Keyboard shortcuts

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