增加ToError方法
This commit is contained in:
@ -23,4 +23,6 @@ type IException interface {
|
||||
GetData() interface{}
|
||||
// GetHttpCode *获取当前异常要返回的http状态码, 不设置则 默认 200
|
||||
GetHttpCode() int
|
||||
// ToError 转换为内置error类型
|
||||
ToError() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user