errhack

package
v0.0.0-...-3b91d86 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreClose

func IgnoreClose(err error) error

IgnoreClose returns nil if the provided error satisfies IsClose, otherwise it returns the provided error.

func IsClose

func IsClose(err error) bool

IsClose returns true if the error looks like a "close" error. Arguably, in well-contructed code, these should never appear, but it's hard to manage.

IsClose assumes err is not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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