errors

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCustomErrors

func HandleCustomErrors(formErrors map[string]string) error

func HandleErrors

func HandleErrors(formErrors interface{}) error

func HandleFlushWithCheckError added in v1.2.14

func HandleFlushWithCheckError(err, duplicatedKeyError error) 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