package
0.0.0-20210827224422-e5fa29d95e8b
Repository: https://github.com/attic-labs/noms.git
Documentation: pkg.go.dev
# Functions
Panic(err) creates an error using format and args and wraps it in a WrappedError which can be handled using Try() and TryCatch().
PanicIfError(err) && PanicIfTrue(expr) can be used to panic in a way that's easily handled by Try() and TryCatch().
If b is false, creates a default error, wraps it and panics.
Utility method, that checks type of error and panics with wrapped error not one of the listed types.
If b is true, creates a default error, wraps it and panics.
If 'f' panics with a WrappedError then recover that error.
If 'f' panics with a WrappedError then recover that error and return it.
If err is a WrappedError, then Cause() is returned, otherwise returns err.
Wraps an error.
# Variables
d.Chk.<Method>() -- used in test cases and as assertions.