import "github.com/cockroachdb/cockroach/pkg/util/errorutil"
SendReport creates a Sentry report about the error, if the settings allow. The format string will be reproduced ad litteram in the report; the arguments will be sanitized.
ShouldCatch is used for catching errors thrown as panics. Its argument is the object returned by recover(); it succeeds if the object is an error. If the error is a runtime.Error, it is converted to an internal error (see errors.AssertionFailedf).
UnexpectedWithIssueErrorf indicates an error with an associated Github issue. It's supposed to be used for conditions that would otherwise be checked by assertions, except that they fail and we need the public's help for tracking it down. The error message will invite users to report repros.
Path | Synopsis |
---|---|
unimplemented |
Package errorutil imports 6 packages (graph) and is imported by 10 packages. Updated 2019-07-28. Refresh now. Tools for package owners.