chained exceptions : Java Glossary


chained exceptions
If you catch an exception, then decide to rethrow a new one to be caught at a higher level, the information in the lower level exeception is lost unless you print it out right there. Instead, starting with Java version 1.4 you can pass the old exception as a parameter to the constructor of the new exception, thus combining the information from both the old and new exeception.

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number