exceptions

package
v0.0.0-...-e231e6d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandlerRecovery

func ErrorHandlerRecovery(c *gin.Context, err any)

func PanicIfError

func PanicIfError(err error)

func PanicIfErrorNotFound

func PanicIfErrorNotFound(err error)

func PanicIfErrorQuery

func PanicIfErrorQuery(err error)

Types

type NotFoundError

type NotFoundError struct {
	Error string
}

func NewDataNotFoundError

func NewDataNotFoundError(error string) NotFoundError

type QueryError

type QueryError struct {
	Error string
}

func NewQueryError

func NewQueryError(error string) QueryError

Jump to

Keyboard shortcuts

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