You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by du...@apache.org on 2001/09/24 21:45:13 UTC
cvs commit: xml-soap/java/src/org/apache/soap SOAPException.java
duftler 01/09/24 12:45:13
Modified: java/src/org/apache/soap SOAPException.java
Log:
The fault code and exception message will now be run through
Utils.cleanString(...) to escape special characters.
For more details, see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3396
Submitted by: Richard Boehme & Matthew J. Duftler
Revision Changes Path
1.4 +3 -3 xml-soap/java/src/org/apache/soap/SOAPException.java
Index: SOAPException.java
===================================================================
RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/SOAPException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SOAPException.java 2000/10/17 12:03:40 1.3
+++ SOAPException.java 2001/09/24 19:45:13 1.4
@@ -68,8 +68,8 @@
private Throwable targetException;
public SOAPException (String faultCode, String msg) {
- super (msg);
- this.faultCode = faultCode;
+ super (Utils.cleanString (msg));
+ this.faultCode = Utils.cleanString (faultCode);
}
public SOAPException (String faultCode, String msg,
@@ -79,7 +79,7 @@
}
public void setFaultCode (String faultCode) {
- this.faultCode = faultCode;
+ this.faultCode = Utils.cleanString (faultCode);
}
public String getFaultCode () {