Documentation ¶
Index ¶
- func ErrorHandler(c *fiber.Ctx, err error) error
- type APIError
- func BadRequest(err error) APIError
- func Conflict(title string, withKey string, withValue any) APIError
- func InternalServerError() APIError
- func InvalidJSON() APIError
- func InvalidRequestData(errors map[string]string) APIError
- func NewAPIError(statusCode int, err error) APIError
- func NotFound(title string, withKey string, withValue any) APIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
Types ¶
type APIError ¶
func BadRequest ¶
func InternalServerError ¶
func InternalServerError() APIError
func InvalidJSON ¶
func InvalidJSON() APIError
func InvalidRequestData ¶
func NewAPIError ¶
Click to show internal directories.
Click to hide internal directories.