errors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(err error, args ...interface{})

Handle is a convenient wrapper around kingpin.Fatalf. It takes an error and an arbitrary number of arguments and displays an error in the format:

limesctl: error: args[0]: args[1]: ... : args[n]: err

func New

func New(str string) error

New is a wrapper around errors.New(). Use this to avoid nameclash with the local errors package and the one in the standard library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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