Versions in this module Expand all Collapse all v1 v1.0.1 Dec 27, 2025 Changes in this version + var ErrBadRequest = &AppError + var ErrCache = &AppError + var ErrConflict = &AppError + var ErrDatabase = &AppError + var ErrExternal = &AppError + var ErrForbidden = &AppError + var ErrInternal = &AppError + var ErrNotFound = &AppError + var ErrUnauthorized = &AppError + var ErrValidation = &AppError + func GetStatus(err error) int + func IsAppError(err error) bool + type AppError struct + Code string + Details map[string]interface{} + Err error + Message string + Status int + func New(code, message string, status int) *AppError + func Wrap(err error, message string) *AppError + func WrapCache(err error) *AppError + func WrapDB(err error) *AppError + func WrapExternal(err error) *AppError + func (e *AppError) Error() string + func (e *AppError) Unwrap() error + func (e *AppError) WithDetails(details map[string]interface{}) *AppError