error_handler

package
v0.0.0-...-ec85eee Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPErrorHandler

func HTTPErrorHandler(err error, ec echo.Context)

HTTPErrorHandler handles error depending on the error type(general or internal)

Types

type ErrorResponse

type ErrorResponse struct {
	Code   error_code.ErrorCode `json:"code"`
	Errors []string             `json:"errors"`
}

ErrorResponse represents api error response

Jump to

Keyboard shortcuts

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