errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorf

func NewErrorf(format string, a ...interface{}) error

NewErrorf instantiates a new error.

func UnwrapAll

func UnwrapAll(err error) error

func WrapErrorf

func WrapErrorf(orig error, format string, a ...interface{}) error

WrapErrorf returns a wrapped error.

Types

type Error

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

Error represents an error that could be wrapping another error.

func (*Error) Error

func (e *Error) Error() string

Error returns the message, when wrapping errors the wrapped error is returned.

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap returns the wrapped error, if any.

Jump to

Keyboard shortcuts

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