errors

package
v0.0.0-...-3910e7f Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCode

func AddCode(err error, code string) error

add error code and message

func Append

func Append(err error, errs ...error) *multierror.Error

func As

func As(err error, target interface{}) bool

func Cause

func Cause(err error) error

func Flatten

func Flatten(err error) error

func Is

func Is(err, target error) bool

func New

func New(msg string) error

func Prefix

func Prefix(err error, prefix string) error

func Unwrap

func Unwrap(err error) error

func Wrap

func Wrap(err error, msg string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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