Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions  RSS feed

Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I am getting very confused with the Exceptions.
At someplace the specs say that the application exceptions are propagated to the client and the client is given a chance to handle. The system/checked exceptions are handled by the container. Any application exception that we don't want the client to handle should be wrapped inside EJBException and re-thrown so that the container can handle it.
What is the deal with RemoteException? According to me that is also a checked exception (from Exception.IOException class)and should be dealt accordingly. Why it is treated separately all over the specs ?
Also I'm having a tough time understanding the exception from methods in CMT beans.
Can someone enumerate the important portions in the "Exception handling" chapter ? In how much detail we need to know ?
Thanks, Sudd
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!