errors

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicate = status.New(codes.AlreadyExists, "Element already exists").Err()

ErrDuplicate is used when a record already exists.

View Source
var ErrNotFound = status.New(codes.NotFound, "Requested element not found").Err()

The entry to delete/read/update could not be found

Functions

func ErrConstraintViolation

func ErrConstraintViolation() *fieldError

func NewFieldError

func NewFieldError(statusCode codes.Code, statusMessage string) *fieldError

Types

This section is empty.

Jump to

Keyboard shortcuts

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