errori

package
v0.1.1116 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCacheMiss              = wrench.Add("cache miss", wrench.Codes{})
	ErrNoResultForCoordinates = wrench.Add("no result found for given coordinates", wrench.Codes{})
	ErrMissingDefaultDocument = wrench.Add("missing default document", wrench.Codes{})
	ErrBucketNotExist         = wrench.Add("bucket does not exist", wrench.Codes{})
	ErrNextDone               = wrench.Add("next done", wrench.Codes{})
	ErrWebSocketClosed        = wrench.Add("websocket connection successfully closed", wrench.Codes{})
)

Sentinel Errors.

The errors defined below using wrench.Add are scoped to the wrench package itself. They will be registered globally within the singleton registry of wrench.

This means that wherever the wrench package is imported, either directly or indirectly, these errors will be accessible through the wrench registry. Any package importing gitlab.com/fabriktor/pkg will have access to these errors as they are registered in the global registry of the wrench package.

Additionally, because these errors are registered in the singleton registry, the FromAppErr function from wrench/httperr will successfully retrieve the associated HTTP status codes and messages when converting errors to HTTP responses. The registry state is shared globally across all imports of wrench, ensuring consistent error handling throughout Fabriktor codebase.

Functions

func Ignore added in v0.1.266

func Ignore(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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