gerrors

package module
v0.0.0-...-fff6bd6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 3 Imported by: 0

README

matters

a error lib for go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gerror

type Gerror struct {
	fmt.Stringer
	// contains filtered or unexported fields
}

Gerror ... an implement of error interface

func New

func New(root error) Gerror

New ... make new Gerror instance with root error

func (*Gerror) Deps

func (g *Gerror) Deps() int

Deps ... deps of error stack

func (Gerror) Error

func (g Gerror) Error() string

func (*Gerror) Pop

func (g *Gerror) Pop() string

Pop ... remove last element from stack and return that

func (Gerror) String

func (g Gerror) String() string

String ... stack to string

func (*Gerror) Wrap

func (g *Gerror) Wrap(msg string)

Wrap ... push error msg to first

Jump to

Keyboard shortcuts

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