I'm developing a main class that writes potential exceptions by means of
e.printStackTrace()
and which finishes with
System.err.flush();
System.out.println("\n>>> EXITING...");
The issue is that when exception trace is big, my exiting message is still printed in the middle of all the error sermon.
What I am doing wrong?