hotime/common/error.go

18 lines
208 B
Go

package common
// Error 框架层处理错误
type Error struct {
error
}
func (that *Error) GetError() error {
return that.error
}
func (that *Error) SetError(err error) {
that.error = err
return
}