Documentation
¶
Index ¶
- func ErrorInternal(c echo.Context, err error, code int) error
- func ErrorInternalMap(c echo.Context, err map[string]interface{}, code int) error
- func ErrorInternalString(c echo.Context, err string, code int) error
- func ErrorNotFound(c echo.Context, err error, code int) error
- func ErrorNotFoundMap(c echo.Context, err map[string]interface{}, code int) error
- func ErrorNotFoundString(c echo.Context, err string, code int) error
- func ErrorUnauthorized(c echo.Context, err error, code int) error
- func ErrorUnauthorizedMap(c echo.Context, err map[string]interface{}, code int) error
- func ErrorUnauthorizedString(c echo.Context, err string, code int) error
- func ErrorUnprocessableEntity(c echo.Context, err error, code int) error
- func ErrorUnprocessableEntityMap(c echo.Context, err map[string]interface{}, code int) error
- func ErrorUnprocessableEntityString(c echo.Context, err string, code int) error
- type APIError
- type ErrorData
- type ExceptionErr
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorInternalMap ¶
func ErrorNotFoundMap ¶
func ErrorUnauthorizedMap ¶
func ErrorUnauthorizedString ¶
Types ¶
type APIError ¶
type APIError struct {
ID int `json:"id,omitempty" jsonapi:"primary,error"`
Status int `json:"status,omitempty" jsonapi:"attr,status"`
Errors []ErrorData `json:"errors,omitempty" jsonapi:"attr,errors"`
Source Source `json:"source,omitempty" jsonapi:"attr,source"`
}
func NewErrorMap ¶
type ExceptionErr ¶
func (*ExceptionErr) Error ¶
func (e *ExceptionErr) Error() string
Click to show internal directories.
Click to hide internal directories.