errors

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ignore

func Ignore(err error, is ...ErrorIs) error

Ignore ignores errors that satisfy any of the supplied ErrorIs functions by returning nil. Errors that do not satisfy any of the supplied functions are returned unmodified.

func IsNamespaceTerminating

func IsNamespaceTerminating(err error) bool

IsNamespaceTerminating returns true if the error is a namespace is terminating error.

Types

type ErrorIs

type ErrorIs func(err error) bool

ErrorIs returns true if an error satisfies a particular condition.

Jump to

Keyboard shortcuts

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