Handle exceptions when sending error message in servlet

According to Sonarqube, even though the signatures for methods in a
servlet include throws IOException, ServletException, it's a bad idea to
let such exceptions be thrown. Failure to catch exceptions in a servlet
could leave a system in a vulnerable state, possibly resulting in
denial-of-service attacks, or the exposure of sensitive information
because when a servlet throws an exception, the servlet container
typically sends debugging information back to the user.

Change-Id: Id163a403daafb50e89920c918d815bd2c387a40e
2 files changed
tree: d9720086f4ae57fe0fefc1782c6811d656c8223a
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK