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
Click to show internal directories.
Click to hide internal directories.