errorx

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Overview

Package errorx provides functions for working with go errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Suppress

func Suppress(incomingError error, errorsToSuppress ...error) error

Suppress filters out errors of the passed-in type. It allows you to easily convert code that uses the "standard error" return-type pattern into code that returns null under normal circumstances. If the incoming error is or is derived from any of the errors to suppress, then that error is filtered out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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