Exceptions expose too much internal information about the system that is otherwise hidden, error messages with codes are the way to go.
Name:
Anonymous2018-04-12 2:00
Any code is a security problem. The best way to remain completely secure is to never use a computer or phone. Problem solved! Wait, no.
We have to take acceptable risks every day.
Do you drive a car? You could get in a car accident. But the only way to never get in a car accident is to never be in a car. But that severely limits what you can do. It's just like people who use NoScript to disable javascript. Sure, you're more secure. You're also a luddite.
Absolute security is impossible. Reasonable security is what you should aim for. Reasonable security should not get rid of useful things. Stack traces are no exception to this, no pun intended.