errorz

package
v1.0.0-dev.11 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound           = errors.New("not found")
	ErrConstraintViolated = errors.New("constraint violated")
)

Functions

func MapDBErr

func MapDBErr(err error) error

MapDBErr maps database errors to appropriate errorz errors. If err is nil, MapDBErr returns nil.

Types

type InvalidInput

type InvalidInput []error

InvalidInput signals that a provided input is invalid due to the wrapped errors.

func (InvalidInput) Error

func (e InvalidInput) Error() string

func (InvalidInput) Unwrap

func (e InvalidInput) Unwrap() []error

type Keyed

type Keyed struct {
	Key string
	Err error
}

func (Keyed) Error

func (k Keyed) Error() string

func (Keyed) Unwrap

func (k Keyed) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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