errors

package
v0.0.0-...-6b33518 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0-or-later, BSD-3-Clause Imports: 1 Imported by: 15

Documentation

Overview

Package errors implements basic error handling.

This package is like github.com/pkg/errors but without the stack traces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause

func Cause(err error) error

Cause returns the first cause of the error or returns the original error if the error does not have a cause. This is unlike the pkg/errors package which returns the most underlying cause for the error.

func New

func New(format string, a ...interface{}) error

func Wrap

func Wrap(err error, format string, a ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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