aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes How to throw same exception from catch block Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "How to throw same exception from catch block" Watch "How to throw same exception from catch block" New topic
Author

How to throw same exception from catch block

Krishna Latha Grandhi
Ranch Hand

Joined: Nov 08, 2005
Posts: 110
Hi friends,

how to throw same exception from catch...




if we want to throw the same ArrayIndexOutOfBoundsException exception from the catch block...
how we have to do...

I read somewhere for this we have to declare as well to handle the exception.. how we can achieve this..

Thank you..

Regards,
Krishna.
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
Hi,

The best approach would be



"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to throw same exception from catch block