| ▲ | naasking a day ago | |||||||
The inner, wrapped exception is logged. Leaking exception details can also leak privileged information, and if you're not careful this can leak information to attackers too. More information is not necessarily better. | ||||||||
| ▲ | wvenable a day ago | parent [-] | |||||||
If your error logging is leaking privileged information to attackers that's a completely different problem from what you should do in code when throwing exceptions. Wrapping exceptions to remove information is mostly a pointless exercise. You should be doing it only to add additional context. | ||||||||
| ||||||||