Does anyone know how to carp in Java? I'm writing a die() function which does some logging and other things and is supposed to throw an Exception, but since the Exception gets created within die() it reports die() as part of its stack trace, confusing anyone looking at it.
I'm asking on StackOverflow, but the typical Java response is "Why would you want to do that?" :)