# README
xerrors
Drop-in replacement для errors
и golang.org/x/xerrors
, а так же функционально для github.com/pkg/errors
.
Локальный запуск тестов со стандартным тулчейном
Так как тесты используют фреймы стэка, необходимо тримить абсолютные пути записываемые в бинарник теста. Для этого необходимо использовать аргумент trimpath
- go test -v -race -gcflags=-trimpath=<absolute_path_to_arcadia_mount>
. В противном случае ваши абсолютные пути будут пролезать во фреймы и тесты будут фейлиться.
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Is reports whether any error in err's chain matches target.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewSentinel acts as New but does not add stack frame.
NextStackTracer returns next error with stack trace.
No description provided by the author
StackTraceOfCause returns first stacktrace that was added to error chain (closest to the root error).
StackTraceOfEffect returns last stacktrace that was added to error chain (furthest from the root error).
Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error.
# Interfaces
No description provided by the author
Wrapper provides context around another error.