errors

package
v0.0.0-...-6b310f0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasStack

func HasStack(err error) bool

func Trace

func Trace(err error) error

func WithStack

func WithStack(err error) error

Types

type ErrorStack

type ErrorStack interface {
	StackTrace() errors.StackTrace
}

type ErrorWithStack

type ErrorWithStack struct {
	// contains filtered or unexported fields
}

func (*ErrorWithStack) Cause

func (w *ErrorWithStack) Cause() error

func (*ErrorWithStack) Format

func (w *ErrorWithStack) Format(s fmt.State, verb rune)

func (ErrorWithStack) StackTrace

func (s ErrorWithStack) StackTrace() errors.StackTrace

func (*ErrorWithStack) Unwrap

func (w *ErrorWithStack) Unwrap() error

Unwrap provides compatibility for Go 1.13 error chains.

Jump to

Keyboard shortcuts

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