errwrap

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StackTrace

func StackTrace()

StackTrace will print all the stack for the error

func Unwrap

func Unwrap()

Unwrap will unwrap an error and do type assertion to it

func Wrap

func Wrap()

Wrap shows what happens when we wrap an error

func WrappedError

func WrappedError(e error) error

WrappedError demonstrates error wrapping and annotating an error

Types

type ErrorTyped

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

ErrorTyped is a error we can check against

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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