title: Is it possible to switch all exceptions to generic messages?
body: <p>In Java, is it possible to force all exceptions to return a generic message? 
  (that is, uncaught exceptions.) </p>
  
  <p>Context: When testing applications, I often encounter applications which leak information through exceptions. I would like to recommend a way to force exceptions to give a generic message. </p>
  
  <p>Example: Give bad input to application. Application dies, giving error message from exception. </p>