exception

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

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 服务初始化

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL