errors

package
v1.73.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

Is Error check

Types

type Error

type Error interface {
	error
	// Skip callers stack
	Skip(n int) Error
	// Stack of callers
	Stack() []uintptr
	// Trace callers stack lines
	Trace(skip int, relative bool) []string
}

Error with stack trace

func New

func New(message string) Error

New error message with stack trace

func Newf

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

Newf error formatted message with stack trace

func WithStack added in v1.72.31

func WithStack(err error) Error

WithStack trace error wrap

Jump to

Keyboard shortcuts

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