You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by da...@apache.org on 2004/09/09 01:22:15 UTC
cvs commit: xml-xmlbeans/v2/src/xmlpublic/org/apache/xmlbeans XmlError.java
daveremy 2004/09/08 16:22:15
Modified: v2/src/xmlpublic/org/apache/xmlbeans XmlError.java
Log:
Contributed by Kevin Krouse
fixing errors created by .forObject() and renamed .forErrorCode() methods
Revision Changes Path
1.8 +4 -4 xml-xmlbeans/v2/src/xmlpublic/org/apache/xmlbeans/XmlError.java
Index: XmlError.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v2/src/xmlpublic/org/apache/xmlbeans/XmlError.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XmlError.java 26 Aug 2004 21:10:34 -0000 1.7
+++ XmlError.java 8 Sep 2004 23:22:14 -0000 1.8
@@ -169,7 +169,7 @@
this(XmlError.formattedMessage(code, args), code, severity, loc);
}
- /**
+ /**
* Returns an XmlError for the given message, with no location and {@link #SEVERITY_ERROR}.
* @param message the error message
*/
@@ -193,7 +193,7 @@
* @param code the error code
* @param args the arguments to use in formatting the error message
*/
- public static XmlError forErrorCode(String code, Object[] args)
+ public static XmlError forMessage(String code, Object[] args)
{
return forSource(code, args, SEVERITY_ERROR, null);
}
@@ -204,7 +204,7 @@
* @param args the arguments to use in formatting the error message
* @param severity the severity ({@link #SEVERITY_ERROR}, {@link #SEVERITY_WARNING}, or {@link #SEVERITY_INFO})
*/
- public static XmlError forErrorCode(String code, Object[] args, int severity)
+ public static XmlError forMessage(String code, Object[] args, int severity)
{
return forSource(code, args, severity, null);
}
@@ -360,7 +360,7 @@
public static XmlError forObject(String code, Object[] args, int severity, XmlObject xobj)
{
if (xobj == null)
- return forMessage(code, severity);
+ return forMessage(code, args, severity);
XmlCursor cur = xobj.newCursor();
XmlError result = forCursor(code, args, severity, cur);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org