package
0.0.0-20230630201924-bc6e940a4ace
Repository: https://github.com/raj63/golang-rest-api.git
Documentation: pkg.go.dev

# Functions

ErrorType is used to distinguish between app error and unknown error.
NewAppError initializes a new domain error using an error and its type.
NewAppErrorWithType initializes a new default error for a given type.

# Constants

InputEmpty error indicates empty input params.
NotFound error indicates a missing / not found record.
RepositoryError indicates a repository (e.g database) error.
ResourceAlreadyExists indicates a duplicate / already existing record.
UnknownError indicates an error that the app cannot find the cause for.
ValidationError indicates an error in input validation.

# Structs

AppError defines an application (domain) error.