• Post Reply Bookmark Topic Watch Topic
  • New Topic

handling RuntimeException  RSS feed

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My application throws net.sf.hibernate.JDBCException e, which in turn throws java.sql.BatchUpdateException.

I want to catch above exception, but since it is RuntimeException, I couldn't.

Can anybody assist me to catch RuntimeException.
 
Kunaal A Trehan
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
If u catch exception superclass u wud be able to
catch runtime exception also

Cheers
Kunal
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!