Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const AlreadyExistCode + const BindErrorCode + const ForbiddenCode + const FormFileErrorCode + const InternalCode + const InvalidCode + const NotFoundCode + const RouteNotFoundCode + const TemporaryDisabledCode + const TimeoutCode + const UnauthorizedCode + type AppError struct + Code int + Inner error + Message string + func NewAlreadyExistError(resourceType, content string) *AppError + func NewForbiddenError() *AppError + func NewHertzBindError(err error) *AppError + func NewHertzFormFileError(err error) *AppError + func NewInternalError(err error) *AppError + func NewInvalidError(params ...string) *AppError + func NewNotFoundError(resourceType, content string) *AppError + func NewUnauthorizedError(message string) *AppError + func (e *AppError) Error() string + func (e *AppError) GetCode() int + type Error interface + Error func() string + GetCode func() int