errors

package
v0.8.40 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCustomErrors

func HandleCustomErrors(formErrors map[string]string, c *gin.Context) error

func HandleErrors

func HandleErrors(formErrors interface{}, c *gin.Context) error

Types

type FieldErrors

type FieldErrors map[string]string

func (FieldErrors) Error

func (fe FieldErrors) Error() string

type NotFoundError

type NotFoundError string

func (NotFoundError) Error

func (e NotFoundError) Error() string

type PermissionError

type PermissionError struct {
	Message string
}

func (*PermissionError) Error

func (e *PermissionError) Error() string

type UnauthorizedError

type UnauthorizedError struct {
	Message string
}

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

Jump to

Keyboard shortcuts

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