Documentation ¶ Index ¶ func Mount(e services.Exception) services.Exception type Service func New() *Service func (s *Service) Build(args ...any) services.Exception func (s *Service) Handle(c *gin.Context) bool func (s *Service) Init(args ...services.Service) services.Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Mount ¶ func Mount(e services.Exception) services.Exception Mount 挂载异常内容 Types ¶ type Service ¶ type Service struct { services.Exception RawErr error } Service 异常服务 func New ¶ func New() *Service New 新建异常服务 func (*Service) Build ¶ func (s *Service) Build(args ...any) services.Exception Build 构建每个请求的异常 func (*Service) Handle ¶ func (s *Service) Handle(c *gin.Context) bool Handle 处理异常 func (*Service) Init ¶ func (s *Service) Init(args ...services.Service) services.Service Init 服务初始化 Source Files ¶ View all Source files exception.go Click to show internal directories. Click to hide internal directories.