errors

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(f string, args ...interface{}) error

func WithStack

func WithStack(err error) error

Types

type TracedError

type TracedError struct {
	Stack util.FuncStack
	Cause error
}

func (*TracedError) Error

func (e *TracedError) Error() string

func (*TracedError) Unwrap

func (e *TracedError) Unwrap() error

type ValueError

type ValueError struct {
	Value interface{}
	Err   error
}

func NewValueError

func NewValueError(value interface{}, err error) *ValueError

func ToValueError

func ToValueError(err error) *ValueError

func (*ValueError) Error

func (ve *ValueError) Error() string

Jump to

Keyboard shortcuts

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