errignore

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package errignore provides a way to mark errors as ignored.

Example
err := errbase.New("error")
err = Wrap(err)
ignored := Is(err)
fmt.Println(ignored)
Output:

true

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Is

func Is(err error) bool

Is returns true if an error is ignored, false otherwise.

By default, an error is not ignored.

func Wrap

func Wrap(err error) error

Wrap marks an error as ignored.

The verbose message is "ignored".

Types

This section is empty.

Jump to

Keyboard shortcuts

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