pkg

package
v0.0.0-...-08634cc Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pkg represents the interface errors.ErrorManager implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

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

Errors predetermines the consistency of the interface errors.ErrorManager implementation.

func New

func New(stack stack.CallStackTracer) (*Errors, error)

New is a Errors constructor.

func (*Errors) Cause

func (e *Errors) Cause(err error) error

Cause implementation of the pkg/errors.Cause method.

func (*Errors) Errorf

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

Errorf implementation of the pkg/errors.Errorf method.

func (*Errors) FullMessage

func (e *Errors) FullMessage(err error) string

FullMessage provides error output from the stack.

func (*Errors) New

func (e *Errors) New(message string) error

New implementation of the pkg/errors.New method.

func (*Errors) ShortMessage

func (e *Errors) ShortMessage(err error) string

ShortMessage provides err.Error message.

func (*Errors) StackTrace

func (e *Errors) StackTrace(err error) stack.Stack

StackTrace provides a call stack trace in the format stack.Stack.

func (*Errors) WithMessage

func (e *Errors) WithMessage(err error, message string) error

WithMessage implementation of the pkg/errors.WithMessage method.

func (*Errors) WithMessagef

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

WithMessagef implementation of the pkg/errors.WithMessagef method.

func (*Errors) WithStack

func (e *Errors) WithStack(err error) error

WithStack implementation of the pkg/errors.WithStack method.

func (*Errors) Wrap

func (e *Errors) Wrap(err error, message string) error

Wrap implementation of the pkg/errors.Wrap method.

func (*Errors) Wrapf

func (e *Errors) Wrapf(err error, format string, args ...interface{}) error

Wrapf implementation of the pkg/errors.Wrapf method.

Jump to

Keyboard shortcuts

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