errWrapped allows arbitrary errors passed to WrapError to be enhanced with context and unwrapped with Cause()
| 99 | // errWrapped allows arbitrary errors passed to WrapError to be enhanced with |
| 100 | // context and unwrapped with Cause() |
| 101 | type errWrapped struct { |
| 102 | cause error |
| 103 | ctx string |
| 104 | } |
| 105 | |
| 106 | func (e errWrapped) Error() string { |
| 107 | if e.ctx != "" { |
nothing calls this directly
no outgoing calls
no test coverage detected