errors

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errors exposes a subset of the github.com/pkg/errors API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cause added in v0.15.1

func Cause(err error) error

Cause returns the underlying cause of the error

func Errorf

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

Errorf creates a new formatted error

func New

func New(message string) error

New creates a new error

func WithMessage

func WithMessage(err error, message string) error

WithMessage annotates an error with a message. Unlike github.com/pkg/errors, this implementation also annotates the error with a stack trace if there is not already one.

func WithMessagef

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

WithMessagef annonates an error with a formatted message

Types

This section is empty.

Jump to

Keyboard shortcuts

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