errs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound       = errors.New("not found")
	ErrNoArgs         = errors.New("no arguments expected")
	ErrToManyArgs     = errors.New("too many arguments")
	ErrUnexpectedType = errors.New("unexpected type")
	ErrRequired       = errors.New("is required")
	ErrAppend         = errors.New("failed append")
	ErrInvalidName    = errors.New("invalid name")
)

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func Argument

func Argument(name string, err error) Error

func New

func New(name, t string, err error) Error

func Option

func Option(name string, err error) Error

func (Error) Error

func (o Error) Error() string

func (Error) Is

func (o Error) Is(err error) bool

func (Error) Unwrap

func (o Error) Unwrap() error

Jump to

Keyboard shortcuts

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