errors

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserError

func IsUserError(err error) bool

IsUserError returns true if err is caused by the user

Types

type UserError

type UserError string

UserError is an error caused by a user. This is supposed to represent both unintentional errors (like invalid input) and intentional "errors" (like cancellation).

func (UserError) Error

func (e UserError) Error() string

Error stringifies the user error

func (UserError) User

func (e UserError) User() bool

User returns true if the error is caused by the user

Jump to

Keyboard shortcuts

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