errorchecks

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errorchecks implements functions for inspecting error meanings.

It is an implementation of Dave Cheney's proposition:

"Assert errors for behaviour, not type"

To implement this, we assert for things that will guide the way we handle the error instead of asserting for the exact type of the error.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInputError

func IsInputError(err error) bool

IsInputError returns true if the error is an input error. The meaning of this is that the function has failed because of the input you provided and not some other external reason. For example, if you are building a REST API, this would be reason to return a 4XX status.

Types

This section is empty.

Jump to

Keyboard shortcuts

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