customerror

package
v0.0.0-...-e3b22c1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound   = errors.New("not found")
	ErrValidation = errors.New("validation failed")
)

Functions

func MapCustomErrorToHttpStatusCode

func MapCustomErrorToHttpStatusCode(err error) int

func MapGormToCustomError

func MapGormToCustomError(err error) error

func MapRedisToCustomError

func MapRedisToCustomError(err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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