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|

Legend *) Required fields are marked
**) You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Category: OAF