Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ApplicationException or SystemException

 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maikalai Zaikin wrote:A system exception is an exception that is a java.rmi.RemoteException (or one of its subclasses) or a RuntimeException that is not an application exception.


If class A is a sub class of Exception, but not a subclass of either RuntimeException or RemoteException. And class A doesn't annotated with @ApplicationException. In this case, please tell me whether class A is an application or system exception?

 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is an application exception, bu default, which has the rollback attribute set to false.
 
Treimin Clark
Ranch Hand
Posts: 757
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it. Thanks Raf
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic