File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes nested exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "nested exception" Watch "nested exception" New topic
Author

nested exception

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
hi,

I dont understand that why there is a nested exception in the programming.

i.e.



Why this is done in the code.


Rakesh Kadulkar
Chinna Eranna
Ranch Hand

Joined: Dec 08, 2009
Posts: 174

There will be cases where.. Applications will have there own specific exceptions defined.

In that case.. they catch the predefined exception, create their own exception and throw it back.


- Chinna
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36514
    
  16
Welcome to JavaRanch

In most cases where you throw a new Exception, you can pass the old Exception to its constructor and both Exceptions can be passed together.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: nested exception
 
Similar Threads
ConnectException
Problem to run my application
weblogic.utils.AssertionError !
javaMail and loosing my marbles!
can'n build jsp use weblogic!