errs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errs implements a user error abstraction.

This helps programs determine what errors should be returned to the user, such as configuration or input validation errors, and what errors are actual system errors.

This should be replaced with https://godoc.org/golang.org/x/xerrors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserError

func IsUserError(err error) bool

IsUserError returns true if the given error is a user error.

func NewUserError

func NewUserError(value string) error

NewUserError returns a new user error.

func NewUserErrorf

func NewUserErrorf(format string, args ...interface{}) error

NewUserErrorf returns a new formatted user error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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