Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: InterruptedException and IOException

 
Bigwood Liu
Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
InterruptedException and IOException don't be thrown in Data class, but sometimes we have to deal with it.
How do you like to chain this kind of exception as this:

Damu
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Damu,
There were a lot of long discussions about this issue.
I personally beilieve that it should be Ok for both:
IOException and InterruptedException to chain than through MyOwnRuntimeException.
Best,
Vlad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic