errors

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

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

Go to latest
Published: Sep 12, 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