withDomain is a wrapper type that adds a domain annotation to an error.
| 26 | // withDomain is a wrapper type that adds a domain annotation to an |
| 27 | // error. |
| 28 | type withDomain struct { |
| 29 | // Mandatory: error cause |
| 30 | cause error |
| 31 | // Mandatory: domain. This also must be free of PII |
| 32 | // as it will be reported in "safe details". |
| 33 | domain Domain |
| 34 | } |
| 35 | |
| 36 | var _ error = (*withDomain)(nil) |
| 37 | var _ errbase.SafeDetailer = (*withDomain)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected