Geeks Talk

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.

Exception chaning

This is a discussion on Exception chaning within the Java forums, part of the Software Development category; What is Exception Chaning...

Go Back   Geeks Talk > Software Development > Java
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Java Java related Issues and Problems

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-02-2009
Junior Member
 
Join Date: Jun 2008
Location: Indore
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
simranfxbytes is on a distinguished road
Exception chaning

What is Exception Chaning
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-05-2009
Expert Member
 
Join Date: May 2009
Location: Bangalore
Posts: 982
Thanks: 155
Thanked 420 Times in 201 Posts
rijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nicerijus is just really nice
Re: Exception chaning

Quote:
Originally Posted by simranfxbytes View Post
What is 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.
Reply With Quote
  #3 (permalink)  
Old 10-07-2009
Contributing Member
 
Join Date: Aug 2009
Location: Indore
Posts: 33
Thanks: 9
Thanked 5 Times in 5 Posts
Sarje is on a distinguished road
Re: Exception chaining

Is there any relation between StackTrace and Exception Chaining?
Reply With Quote
  #4 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Nov 2009
Location: Fremont CA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Raszu is on a distinguished road
Re: Exception chaning

No direct relation. both are similar but distinct behavior or programing language.
Reply With Quote
Reply

  Geeks Talk > Software Development > Java

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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


All times are GMT -4. The time now is 07:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved