iedc-go/common/error.go

18 lines
208 B
Go
Raw Normal View History

2021-05-23 23:27:41 +00:00
package common
2017-08-04 08:20:59 +00:00
// Error 框架层处理错误
2017-08-04 08:20:59 +00:00
type Error struct {
error
2017-08-04 08:20:59 +00:00
}
func (that *Error) GetError() error {
2017-08-04 08:20:59 +00:00
return that.error
2017-08-04 08:20:59 +00:00
}
func (that *Error) SetError(err error) {
that.error = err
return
2017-08-04 08:20:59 +00:00
}