errors

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New creates a new error with stack trace saved

func WithStack

func WithStack(err error) error

WithStack wrap error with stack trace saved

func Wrap

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

Wrap wrap origin error into a new one

Types

type Error

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

Error enhanced error

func (Error) Cause

func (e Error) Cause() error

Cause returns origin error

func (Error) Error

func (e Error) Error() string

Error return string representation of error

func (Error) Format

func (e Error) Format(state fmt.State, verb rune)

Format formats error

Jump to

Keyboard shortcuts

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