http_error

package
v0.0.0-...-37076da Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(c echo.Context, err error) error

func ToJsonErr

func ToJsonErr(err error) map[string]string

Types

type HTTPBadRequestError

type HTTPBadRequestError struct {
	Err  string                 `json:"error" example:"error message"`
	Errs []validator.FieldError `json:"errors"`
}

type HTTPError

type HTTPError struct {
	Err string `json:"error" example:"error message"`
}

Jump to

Keyboard shortcuts

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