Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass EJB ApplicationException to web

 
eid hazim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have EJB class, custom exception and web back end bean classes, i want to catch the custom exception in the web if the EJB pass the exception, but the EJBException catch the exception as System Exception??

EJB5184:A system exception occurred during an invocation on EJB

Exception Class:


EJB Class:


Backend Class:
 
eid hazim
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The issue is after i cover the main Exception with the custom Exception, there are system exception happen, so the custom Exception doesn't pass, only the system exception is pass
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic