From: Eric P. <th...@us...> - 2009-08-14 21:43:15
|
Update of /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/util In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13693 Modified Files: MessageUtil.java Log Message: added setAppFormError utility method. Sometimes you just want to complain about a general error. Index: MessageUtil.java =================================================================== RCS file: /cvsroot/sandev/sand/apps/basics/src/org/sandev/basics/util/MessageUtil.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** MessageUtil.java 21 May 2009 17:06:49 -0000 1.13 --- MessageUtil.java 14 Aug 2009 21:43:02 -0000 1.14 *************** *** 259,262 **** --- 259,276 ---- /** + * Set an app error with the given text. + */ + public static void setAppFormError(AggregateUpdate au,String errtext) + { + ErrorInfo ei=new ErrorInfo(); + ei.setSeverity(ErrorInfo.SEVERITY_ERROR); + ei.setCode(INVALIDFORM); + ei.setText(errtext); + au.addNotices(ei); + au.setSandTransmitStatus(AggregateUpdate.STATUS_APPERROR); + } + + + /** * Return true if the given collection message contains an instance * with the given id, false otherwise. |