Possible Duplicate:
Java exception handling
In Java, is it possible to print in console the error code line number with error information means:
try {
// something
} catch(Exception e) {
// modify this one to print line number of error with additional info
System.out.println(e);
}