Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerError = New(500, "ServerError",
"There was a little problem on the server side, please report it to us or try again later.")
ServerError always the same
Functions ¶
func ErrorHandler ¶
func ErrorHandler(err error, c echo.Context)
ErrorHandler customize echo's HTTP error handler.
Types ¶
type Error ¶
type Error struct { Key string `json:"error"` Message string `json:"message"` // contains filtered or unexported fields }
Error custom struct
func ParseResp ¶
ParseResp can parse http response, if there is a error, it would read and close the body for error messages.
Click to show internal directories.
Click to hide internal directories.