The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Exception-Handling Antipatterns
Subject:  Nested exceptions lose vital trace info
Date:  2007-06-12 20:35:46
From:  iamnoah
Response to: Nested exceptions lose vital trace info


The '... and 42 more' means the rest of the remaining 42 lines of the exception's trace match the last 42 lines of the enclosing exception's trace. No information has been lost.

I personally prefer this way because if you're reading the log from the bottom (e.g. tail -f) then the root cause is the easiest thing to find.

http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html#printStackTrace() might explain it better than I can.

 Feed java.net RSS Feeds