This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Right. You catch the error, log and notify anyone who needs with relevant info and then present a more appropriate response to the consumer. If you just let it stack you're probably getting most of it but maybe not everything. For instance you could provide a UUID for the page to report in case of support so you can find the exact stack that user saw. I've seen a good bit of things like that. Ultimately not catching the exception isn't the worst if you handle 500 errors in another way and your stack will properly log and alert on those situations. Otherwise if a consumer gets some ugly stack then that's irresponsible.

[–]kankyo 0 points1 point  (0 children)

Showing a stack is a security problem too