I have code that throws a bunch of exceptions, but each of them contains only the printStackTrace () method, as shown below.
} catch (SecurityException e) {
// TODO Auto-generated catch block
System.err.println(e);
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Is this sufficient or do I need to include additional instructions such as System.err.println (e)? Usually, if an exception occurs, I can only track the source using the above.
source
share