By bloid
via artima.com
Published: Jan 16 2007 / 16:10
Java's checked exceptions sometimes force you to catch a checked exception that you believe will never be thrown. Best practice dictates that you wrap that in an unchecked exception and rethrow it, just in case. What exception class do you wrap with in that case?
Comments
abarnea_2000 replied ago:
The ULTIMATE exception handling: see www.cajoon.com . . . JVM upon exception 'wakes it up' and if passes criteria of type, class, method, extracts a snapshot of heap and stack values that were pertinent right after the exception and just before it is returned to the application (and to any exception handling therein). Completely transparent to the code . . . no instrumentation required
Voters For This Link (7)
Voters Against This Link (0)