Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Exception chaning within the Java forums, part of the Software Development category; What is Exception Chaning...
|
|||||||
|
|||
|
Re: Exception chaning
Hi,
Whenever in a program the first exception causes an another exception, that is termed as Chained Exception. Java provides new functionality for chaining exceptions. Exception chaining (also known as "nesting exception") is a technique for handling the exception, which occur one after another i.e. most of the time is given by an application to response to an exception by throwing another exception. Typically the second exception is caused by the first exception. Therefore chained exceptions help the programmer to know when one exception causes another. Syntax:: try { } catch (IOException e) { throw new TestException("Other IOException", e); } Thanks, Rijus -------------------- Real Inspirational Journey........Unanimously & Sincerely. Last edited by rijus; 10-05-2009 at 10:34 AM. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| exception | b sivareddy | QTP | 2 | 09-29-2008 09:39 AM |
| Exception | mppandi | Java | 2 | 07-28-2008 03:58 AM |
| Exception in JSP and web.xml | balinaidu007 | JSP | 0 | 04-21-2008 06:36 AM |
| Exception...... | Sampath_Java | Java | 1 | 09-03-2007 03:55 AM |
| Built-in and plugin stages, Chaning Null to Not Null and Types of lookup | Geek_Guest | Data Warehousing | 0 | 04-06-2007 04:48 AM |