Friday, 4 April 2014

Java Presents: The Exception Stack

Everyone who has ever tried to code in Java (or run Java applications...), has seen the ... eh ... "beautiful" exception messages it provides. The exception stack is so big, it won't fully fit into your console log, and instead of a clear error message you are left with hundreds of lines of error messages that might or might not lead you to the actual error in the code.

My personal favorite is the one that says "Please, master coder, I can't find this class definition! Help me!", and the class that it tries to find is the actual exception being thrown. And that exception is being thrown from a logger that is trying to send an error report to the admin about an another exception thrown.


After creating this beautiful masterpiece, I'm off to check why my code is throwing the exceptions ;).

No comments:

Post a Comment