• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to throw same exception from catch block

 
Krishna Latha Grandhi
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The best approach would be

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic