Dear J2EE developers,
When there is a fault in my method in my Session Bean then I throw a EJBException (like this: throw new EJBException(Error in method!))
But when I call the method from a JSP and cause by purpose a fault then I get the next error:
Exception caught com.sap.engine.services.ejb.exceptions.BaseEJBException: Exception in method [methodName].
more text
Caused by: javax.ejb.EJBException: Error in method!
more text
When I call the method from a Webservice then I get the next error:
Exception in method [methodName].
My question is: How can I get my message Error in method! instead of the exception above or the long exception from my JSP. I really hope that this is possible. How can I otherwise get a decent exception message in my applications!
Best regards,
Marinus Geuze