Extracting user-friendly exception details in Java
- by Jon
I've got a J2EE web application that I'm working on and when an exception occurs, I'd like to get some basic details about the exception and log it. The message that I'm logging should be pretty basic, something that might mean something to the people running the web server(s).
Would using e.getMessage() be the best thing to log? Thanks.