«« Next » « Previous
«« Next » « Previous

Link Details

Link 11201 thumbnail
User 111696 avatar

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?
  • 7
  • 0
  • 764
  • 243

Comments

Add your comment
User 223844 avatar

abarnea_2000 replied ago:

0 votes Vote down Vote up Reply

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

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)