You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/11/21 23:21:02 UTC
svn commit: r477957 -
/incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js
Author: mturyn
Date: Tue Nov 21 15:21:02 2006
New Revision: 477957
URL: http://svn.apache.org/viewvc?view=rev&rev=477957
Log:
Fixed handling of error messages with arguments---wasn't implemented at all before.
Modified:
incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js
Modified: incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js?view=diff&rev=477957&r1=477956&r2=477957
==============================================================================
--- incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js (original)
+++ incubator/xap/trunk/src/xap/xml/xmodify/XmodifyException.js Tue Nov 21 15:21:02 2006
@@ -30,7 +30,11 @@
* @author JL@HisOwn.com
*/
-xap.xml.xmodify.XmodifyException = function( message ){
+xap.xml.xmodify.XmodifyException = function(){
+ var message = arguments[0] ;
+ for( var ii=1; ii<arguments.length; ++ii){
+ message = message.replace("%s", arguments[ii]) ;
+ }
this._message = message;
}