• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proper way to handle exception

 
ShankarS
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The various methods in the Data class throws DatabaseException. But, the Data class constructor alone does not throw DatabaseEXception, instead it throws IOException. Shall we change it to throw DatabaseException.
And, We will be using wait() method somewhere in our Data class, mostly in lock() method. How are you guys handling the InterruptedException. Are you peoples handling it and throwing it as DatabaseException. And, what message are you guys placing as message string.
Thanx. in Advance,
Shankar S
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ShankarS

This is your last and final warning!!!. I will be forced to take appropriate action if your name is not changed as soon as possible.
As i have told you earlier we follow certain conventions with respect to the User name as given in the document here .
Your user name does not follow these conventions. Please re-register with a name following these conventions.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic