Extracting user-friendly exception details in Java

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-07T17:46:55Z Indexed on 2010/05/07 17:58 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee