Documentation ¶
Index ¶
- Constants
- func AsErrno(err error) error
- func Errno(code int, err error) error
- func Errnof(code int, format string, args ...any) error
- func GetErrno(err error) int
- func New(text string, args ...any) error
- func Throw(err error) error
- func Throwf(format string, args ...any) error
- func Try(fn func() error) (err error)
- type Errors
Constants ¶
View Source
const ( EUnknown = -1 EOK = 0 )
Variables ¶
This section is empty.
Functions ¶
func GetErrno ¶ added in v0.0.18
GetErrno finds the first error in err's chain that contains errno.
The chain consists of err itself followed by the sequence of errors obtained by repeatedly calling Unwrap.
Types ¶
Click to show internal directories.
Click to hide internal directories.