errors

package
v1.5.13 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 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 a error with caller stack information

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 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