RestApiServlet: Give more useful errors to users
REST API handlers actually try pretty hard to give readable error
messages in their Gerrit-specific REST exception instances, even in
generic cases like ResourceNotFoundException. RestApiServlet was doing
the end user no favors by swallowing those, so stop.
For non-Gerrit-specific exception classes, which may be generated in
code not under our control, we continue to assume that the exception
message should not be shown to the user.
Change-Id: Ice3484e21c76019846874a8c39820672ad9bd2f0
3 files changed