errors

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target any) bool

TODO: As test cases

func Cause

func Cause(err error) error

func Is

func Is(err, target error) bool

Builtin Methods for Errors Package

func Join

func Join(errors ...error) error

func New

func New(msg string) error

func Unwrap

func Unwrap(err error) error

func With

func With(err error, errs ...error) error

With is easy error access

func WithMessage

func WithMessage(err error, msg string, errs ...error) error

func Wrap

func Wrap(err error, message string) error

Method from github.com/unbxd/go-base/v2/errors

func Wrapf

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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