errors

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	error
	// contains filtered or unexported methods
}

Error an error with stack info

func Errorf

func Errorf(format string, args ...interface{}) Error

Errorf create a new error

func New

func New(msg string) Error

New create a new error

func Panic added in v1.1.3

func Panic(p interface{}) Error

Panic create a error from panic

func WithStack

func WithStack(err error) Error

WithStack add caller stack information

func Wrap

func Wrap(err error, msg string) Error

Wrap with some extra message into err

func Wrapf

func Wrapf(err error, format string, args ...interface{}) Error

Wrapf with some extra message into err

Jump to

Keyboard shortcuts

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