iedc-go/vendor/code.hoteas.com/golang/hotime/error.go

26 lines
313 B
Go
Raw Normal View History

2020-04-29 15:14:06 +00:00
package hotime
//框架层处理错误
type Error struct {
error
err error
}
func (this *Error) GetError() error {
return this.error
}
func (this *Error) SetError(err error, loglevel ...int) {
this.error = nil
if err == nil {
this.error = err
this.err = err
return
}
this.error = err
return
}