errors

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TraceEnabled = true

Functions

func Cause

func Cause(err error) error

func Equal

func Equal(err1, err2 error) bool

func Errorf

func Errorf(format string, v ...interface{}) error

func New

func New(s string) error

func NotEqual

func NotEqual(err1, err2 error) bool

func Stack

func Stack(err error) trace.Stack

func Trace

func Trace(err error) error

Types

type TracedError

type TracedError struct {
	Stack trace.Stack
	Cause error
}

func (*TracedError) Error

func (e *TracedError) Error() string

Jump to

Keyboard shortcuts

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