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 ¶
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.
Click to show internal directories.
Click to hide internal directories.