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: 3

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