errors

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 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