• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return in catch block!

 
Nick Petas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does a single return in a catch block do?
Thank you.
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing less or more then a regular return statement. Why don't you try it?
 
Nick Petas
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where exactly does it return?In the try block?
 
Stephan van Hulst
Bartender
Pie
Posts: 5891
63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same place it returns to outside the try block. Ask yourself, where does return normally return to?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic