errors

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterErrorSpace

func RegisterErrorSpace(f ErrorSpace)

RegisterErrorSpace registers the ErrorSpace - last one wins.

func Wrap

func Wrap(err error) error

Wrap converts database error codes into their corresponding gRPC status codes.

Types

type ErrorSpace

type ErrorSpace func(error) codes.Code

ErrorSpace allows implementations to inject database specific error checking to the application.

Directories

Path Synopsis
Package sqlite provides sqlite-specific error checking.
Package sqlite provides sqlite-specific error checking.

Jump to

Keyboard shortcuts

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