Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • It might be good to mention that this sort of issue can really wreak havoc in cases where a method runs a function which is supplied by its caller. The author of the method receiving the function will in many cases have no reason to know nor care what the caller is expecting it to do, nor what exceptions the caller might be expecting. If the code receiving the method isn't expecting it to throw a checked exception, the method being supplied may have to wrap any checked exceptions it would throw in unchecked exceptions that its supplier could then catch. Commented Jul 27, 2015 at 18:06