RuntimeException ftw
Posted Oct 28, 2012 8:48 UTC (Sun) by
man_ls (subscriber, #15091)
In reply to:
RuntimeException ftw by cmccabe
Parent article:
Haley: We're doing an ARM64 OpenJDK port!
Unless you are a developer, you shouldn't need to read stack traces.
Absolutely true, I did not want to imply that the stack trace is shown to the user. The server displays a regular, nice 500 page (with no mention of "HTTP 500" either); but the stack trace is stored in the logs for further analysis.
Exceptions are good also to return from APIs, as long as they are documented: they come out in tests, are easy to spot and understand, and easy to deal with.
(
Log in to post comments)