Exception chaining

This is an old revision of this page, as edited by VictorSergienko~enwiki (talk | contribs) at 11:54, 26 December 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Exception chaining AKA exception wrapping is a object-oriented programming technique of wrapping exceptions into exceptions by saving original exception, i.e. as a Cause property. The idea is that a method should throw exceptions defined at the same abstraction level as the method itself, without discarding important debugging information. This way is particularily enforced by Checked_exceptions in Java_language.

Exceptional practices by Brian Goetz at javaworld.com