Versions in this module Expand all Collapse all v1 v1.15.0 Oct 7, 2025 Changes in this version + const BindErrorCode + const CannotExecCode + const InternalCode + const InvalidCode + const NotFoundCode + const RouteNotFoundCode + func IsCode(err error, code int) bool + type AppError struct + Code int + Inner error + Message string + func NewCannotExecError(msg string) *AppError + func NewHertzBindError(err error) *AppError + func NewHertzRouteNotFoundError(ctx *app.RequestContext) *AppError + func NewInternalError(err error) *AppError + func NewInvalidError(params ...string) *AppError + func NewNotFoundError(resourceType, content string) *AppError + func (e *AppError) Error() string + func (e *AppError) GetCode() int + type Error interface + Error func() string + GetCode func() int