mirror of
https://github.com/nabbar/golib.git
synced 2025-10-05 15:56:50 +08:00
Package errors:
- implement GOROOT/src/errors Is interface - fix bug with GOROOT/src/errors UnWrap / Is
This commit is contained in:
@@ -49,6 +49,9 @@ type Error interface {
|
||||
//GetParentCode return a slice of CodeError value of all parent Error and the code of the current Error
|
||||
GetParentCode() []CodeError
|
||||
|
||||
//Is implement compatiblity with GOROOT/src/errors/wrap Is fucntion
|
||||
Is(e error) bool
|
||||
|
||||
//IsError check if the given error params is a valid error and not a nil pointer
|
||||
IsError(e error) bool
|
||||
//HasError check if the given error in params is still in parent error
|
||||
|
Reference in New Issue
Block a user