Documentation ¶
Index ¶
- func Annotate(other error, message string) error
- func Annotatef(other error, format string, args ...interface{}) error
- func Cause(err error) error
- func Errorf(format string, args ...interface{}) error
- func GetMTU(err error) int
- func IsMTU(err error) bool
- func IsNoRoute(err error) bool
- func IsTimeout(err error) bool
- func MTUf(mtu int, format string, args ...interface{}) error
- func New(message string) error
- func NewNoRoute(host string) error
- func Timeoutf(format string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMTU ¶
GetMTU returns the mtu associated with err. If err is not an MTU error (see IsMTU), GetMTU returns 0.
func IsNoRoute ¶
IsNoRoute returns true if err is a no route-related error as constructed using NewNoRoute.
func NewNoRoute ¶
NewNoRoute constructs a new error indicating that there is no route to the given host.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.