Skip to main content
4 events
when toggle format what by license comment
Apr 26, 2014 at 10:35 comment added Maarten Bodewes Could be rewritten to write your own hierarchy of checked exceptions.
Jun 12, 2012 at 13:54 comment added palto I don't want to be rude but what does this have to do with CHECKED exceptions? :)
Nov 18, 2010 at 16:54 comment added Michael K +1 for good instructions. Also, where appropriate, use initCause or initialize the exception with the exception that caused it. Example: You have an I/O utility that you only need an exception if the write fails. However, there are multiple reasons that a write could fail (couldn't get access, write error, etc.) Throw your custom exception with the cause one so that the original problem is not swallowed.
Nov 18, 2010 at 15:58 history answered DanW CC BY-SA 2.5