errors

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 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(format string, args ...interface{}) error

func Is

func Is(err error, target error) bool

func New

func New(message string) error

func Wrap

func Wrap(err error, message string) error

func WrapWithMapper

func WrapWithMapper(err error, mapper ErrorMapper, format string) error

func Wrapf

func Wrapf(err error, format string, args ...interface{}) error

func WrapfWithMapper

func WrapfWithMapper(err error, mapper ErrorMapper, format string, args ...interface{}) error

Types

type ErrorMapper

type ErrorMapper func(err error) error

Jump to

Keyboard shortcuts

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