Documentation ¶
Index ¶
- func ErrorHandler(err error, c echo.Context)
- type ApiError
- func AuthorizationError(detail string) ApiError
- func BindError(err error) ApiError
- func ContentTypeError() ApiError
- func DBEmptyRowError(err error) ApiError
- func DBError(detail string, err error) ApiError
- func GeneralError(detail string, err error) ApiError
- func InvalidMethodError(method string, uri string, err error) ApiError
- func LimiterError(err error) ApiError
- func MissingParamError(name string) ApiError
- func NewApiError(statusCode int, title string, detail string, severe bool, err error) ApiError
- func ParamError(name string, err error) ApiError
- func ParseError(detail string) ApiError
- func RouteNotFoundError(detail string, err error) ApiError
- func StringLengthError(field string, colLen int) ApiError
- type BodyError
- type ProgramData
- type RequestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiError ¶
type ApiError struct { ApiErrorCode string `json:"api_error_code"` StatusCode int `json:"status_code"` Title string `json:"title"` Detail string `json:"detail"` Severe bool `json:"severe"` ProgramData `json:"program_data"` }
func AuthorizationError ¶
func ContentTypeError ¶
func ContentTypeError() ApiError
func DBEmptyRowError ¶
func LimiterError ¶
func MissingParamError ¶
func NewApiError ¶
base function call
func ParamError ¶
func ParseError ¶
func RouteNotFoundError ¶
func StringLengthError ¶
Click to show internal directories.
Click to hide internal directories.