WithDomain wraps an error so that it appears to come from the given domain. Domain is shown: - via `errors.GetSafeDetails()`. - when formatting with `%+v`. - in Sentry reports.
(err error, domain Domain)
| 41 | // - when formatting with `%+v`. |
| 42 | // - in Sentry reports. |
| 43 | func WithDomain(err error, domain Domain) error { return domains.WithDomain(err, domain) } |
| 44 | |
| 45 | // NotInDomain returns true if and only if the error's |
| 46 | // domain is not one of the specified domains. |
nothing calls this directly
no test coverage detected
searching dependent graphs…