errors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewHTTPError = echo.NewHTTPError

NewHTTPError returns error with http status code.

Functions

func Debug

func Debug(data interface{}) error

Debug returns anyway error for debugging.

func Wrap

func Wrap(err error, data interface{}) error

Wrap wraps error with additional data and stack info.

Types

type Err

type Err struct {
	Raw  error
	Data interface{}
	// contains filtered or unexported fields
}

Err is rich error struct.

func (*Err) Error

func (err *Err) Error() string

func (Err) Trace

func (s Err) Trace() errors.StackTrace

Jump to

Keyboard shortcuts

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