OAF – Raise Single/ Bundled Exception – Using AOL Message
Single Exception
throw new OAException("FND","XXCUS_CPL_SUCC_MSG",null,OAException.INFORMATION,null) ;
Bundled Exception
if (pageContext.getParameter("bundledExc")!=null)
{
ArrayList excArrayList = new ArrayList();
OAException exp1 = new OAException("FND","XXCUS_CPL_FIRST_MSG", null, OAException.INFORMATION,null);
OAException exp2 = new OAException("FND","XXCUS_CPL_SCND_MSG", null, OAException.INFORMATION,null);
excArrayList.add(exp1) ;
excArrayList.add(exp2) ;
OAException.raiseBundledOAException(excArrayList);
}
Comments |0|
Category: OAF