Versions in this module Expand all Collapse all v1 v1.1.0 May 5, 2026 v1.0.0 May 3, 2026 Changes in this version + func IsStatusCode(err error, statusCode StatusCode) bool + type AppError interface + HTTPStatusCode func() int + StatusCode func() StatusCode + func IsAppError(err error) (AppError, bool) + type EntityIDType interface + type Error struct + Entity string + ID T + Msg string + StatCode StatusCode + func NewForbiddenError[T EntityIDType](entity string, id T) Error[T] + func NewInvalidError[T EntityIDType](entity string, id T, msg string) Error[T] + func NewNotFoundError[T EntityIDType](entity string, id T) Error[T] + func NewTooManyRequestsError(entity string, msg string) Error[int32] + func (e Error[T]) Error() string + func (e Error[T]) HTTPStatusCode() int + func (e Error[T]) StatusCode() StatusCode + type StatusCode int + const Forbidden + const Invalid + const NotFound + const TooManyRequests