BusinessServiceException

Andrew2009

Well Known Member
In my bssv, I encounter a ClassNotFoundException and I want to throw a BusinessServiceException and include the cause of the exception which is it can't find a class. How do I throw the BusinessServiceException and include the error message in it?

Thanks
 
typically the confirm value object will have a list of errors in it.

So in theory (never actually done this)

1. catch the exception
2. create e1messagelist object
----E1MessageList messages = new E1MessageList();
3. create a return value object
----D5512345_Confirm confirmVO = new D5512345_Confirm();
3. create new e1message object, add some message to it, then add that message to the e1messagelist
----Gonna have to look into the java doc for the implementation details
4. fill confirm vo with e1 message object
----confirmVO.setE1MessageList(messages);
5. return confirm vo
6. profit
 
Back
Top