|
From: Wolfgang M. M. <wol...@us...> - 2004-09-12 19:48:37
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20415/src/org/exist/xquery/functions/util Modified Files: CatchFunction.java Log Message: Changed CatchFunction to store the caught exception message into the module global variable util:exception-message. Index: CatchFunction.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/util/CatchFunction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CatchFunction.java 12 Sep 2004 09:25:16 -0000 1.3 --- CatchFunction.java 12 Sep 2004 19:48:28 -0000 1.4 *************** *** 89,93 **** --- 89,95 ---- (UtilModule) context.getModule(UtilModule.NAMESPACE_URI); QName exQname = new QName("exception", UtilModule.NAMESPACE_URI, UtilModule.PREFIX); + QName msgQname = new QName("exception-message", UtilModule.NAMESPACE_URI, UtilModule.PREFIX); myModule.declareVariable(exQname, new StringValue(e.getClass().getName())); + myModule.declareVariable(msgQname, new StringValue(e.getMessage())); return getArgument(2).eval(contextSequence, contextItem); } |