errors

package
v0.0.0-...-d7cb029 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAnonError = errors.New("anonymous error")
View Source
var TraceEnabled = true

Functions

func Cause

func Cause(err error) error

func Equal

func Equal(err1, err2 error) bool

func Errorf

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

func New

func New(s string) error

func NotEqual

func NotEqual(err1, err2 error) bool

func Stack

func Stack(err error) trace.Stack

func Trace

func Trace(err error) error

Types

type ErrorList

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

func (*ErrorList) Errors

func (q *ErrorList) Errors() []error

func (*ErrorList) First

func (q *ErrorList) First() error

func (*ErrorList) Len

func (q *ErrorList) Len() int

func (*ErrorList) PushBack

func (q *ErrorList) PushBack(err error)

func (*ErrorList) Reset

func (q *ErrorList) Reset()

type TracedError

type TracedError struct {
	Stack trace.Stack
	Cause error
}

func (*TracedError) Error

func (e *TracedError) Error() string

Jump to

Keyboard shortcuts

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