UnwrapOnce accesses the direct cause of the error if any, otherwise returns nil. It supports both errors implementing causer (`Cause()` method, from github.com/pkg/errors) and `Wrapper` (`Unwrap()` method, from the Go 2 error proposal).
(err error)
| 28 | // github.com/pkg/errors) and `Wrapper` (`Unwrap()` method, from the |
| 29 | // Go 2 error proposal). |
| 30 | func UnwrapOnce(err error) error { return errbase.UnwrapOnce(err) } |
| 31 | |
| 32 | // UnwrapAll accesses the root cause object of the error. |
| 33 | // If the error has no cause (leaf error), it is returned directly. |
nothing calls this directly
no test coverage detected
searching dependent graphs…