title: Custom Java exception printing when thrown
body: <p>I want to design it such that whenever one of my custom exceptions is thrown, it automatically prints the stacktrace to a file.  Is there a method I can override to accomplish this?  Doing this would help to reduce a noticable amount of code in my project.</p>