• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Throw in catch block

 
pramod talekar
Ranch Hand
Posts: 323
Eclipse IDE Java Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Could you please tell me when we can write throw statement in a catch block?


Regards,
Pramod
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's nothing special in a catch block that would restrict you from throwing exceptions in there - exactly the same rules apply as outside a catch block.

Is there something specific, or do you have some example code, to explain why you have this question?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic