• Post Reply Bookmark Topic Watch Topic
  • New Topic

do I have to recover the Interrupted Exception

 
ken bonzo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

do we have to recover the InterruptedException?
I do not call the interrupt method at all

Regards
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your application may not be interrupting the threads directly, but InterruptedException is a checked exception, so you will have to deal with it.

I guess you refer to the locking mechanism . There, if an InterruptedException happens, I am throwing a RecordNotFoundException with a message like "The record could not be found because the locking process was interrupted".
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!