package
0.0.0-20240510125733-74a03803a9f0
Repository: https://github.com/albanybuipe96/bookstore-users-api.git
Documentation: pkg.go.dev

# Functions

BadRequestError creates a CustomError with a bad request status code and a custom message.
InternalServerError creates a CustomError with an internal server error status code and a custom message.
NewCustomError creates and returns a pointer to a new CustomError.
NotFoundError creates a CustomError with a not found status code and a custom message.
ReportDbError reports database errors, returning a CustomError based on the error type.

# Structs

CustomError represents a custom error structure with a message, HTTP status code, and a reason.