增加ToError方法

This commit is contained in:
zhangdeman001
2023-05-11 18:20:56 +08:00
parent 0679ce5092
commit 2bc6061e1c
4 changed files with 29 additions and 39 deletions

View File

@ -23,4 +23,6 @@ type IException interface {
GetData() interface{}
// GetHttpCode *获取当前异常要返回的http状态码, 不设置则 默认 200
GetHttpCode() int
// ToError 转换为内置error类型
ToError() error
}