Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:about exceptions.

 
Larry Li
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my assignment,the exceptions can be thrown are defined in the DB interface.
for example : public int create(String[] data) throws DuplicateKeyException;
But what should I do in the implementation when I have catched an exception other than this one? If an IOException occurs, should I just catch and ignore it? Because no other exception can be thrown where in the interface it has not been defined.
[ April 23, 2003: Message edited by: Larry Lee ]
[ April 23, 2003: Message edited by: Larry Lee ]
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you noticed this post yet?
 
Larry Li
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx,Barry.
I omitted it.
Larry.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic