Why Care About Exception Chaining in Java
Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 11989
Total Votes: 139 votes
Category: JAVA/Core JAVA
Submitted on: 2011-03-09 20:02:40
Submitted By: Sandeep Bhandari
Description:I have seen many sources on the internet before posting this article and no article brings out the main point to remember about exception chaining.
The most important thing to remember about Exception chaining is that we need to use the constructor of the exception classes which accepts a parameter of type Throwable so that it can keep a reference to the exception which was the cause of this exception. More detail...