• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to IOException  RSS feed

 
thuy nguyen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I must implement methods of a interface named DB. None of which throws IOException. But the underline I/O implementation may generate IOException. Should I just log the exception and ignore it or how do a propagate it up?
 
Jethro Borsje
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The most common solution on this forum seems to be to wrap the IOException in a RuntimeException which you could make yourselft, for example:
.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!