errors

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: GPL-3.0 Imports: 1 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

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