[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Wed May 30 17:44:19 UTC 2007


gordonp
Wed May 30 13:44:19 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser
In directory dev.open-bio.org:/tmp/cvs-serv309/src/main/org/biomoby/shared/parser

Modified Files:
	ServiceException.java 
Log Message:
Changed exception printing to toXMLString() so as not to collide with Martin's toXML(), which returns a DOM object
moby-live/Java/src/main/org/biomoby/shared/parser ServiceException.java,1.12,1.13
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java	2007/05/21 00:56:15	1.12
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java	2007/05/30 17:44:19	1.13
@@ -479,26 +479,26 @@
 	return ex;
     }
 
-//     public String toXML(){
-// 	StringBuffer xml = new StringBuffer("          <moby:" + MobyTags.MOBYEXCEPTION + " " +
-// 					    MobyTags.SEVERITY + "=\"" + severity + "\" ");
-// 	if(refQueryID != null){
-// 	    xml.append(MobyTags.REFQUERYID + "=\"" + refQueryID + "\" ");
-// 	}
-// 	if(refElement != null){
-// 	    xml.append(MobyTags.REFELEMENT + "=\"" + refElement + "\" ");
-// 	}
-// 	xml.append(">\n");
-
-// 	xml.append("<moby:"+ MobyTags.EXCEPTIONCODE + ">"+code+"</moby:"+MobyTags.EXCEPTIONCODE+">");
-
-// 	if(getMessage() != null){
-// 	    xml.append("            <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage()+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
-// 	}
+     public String toXMLString(){
+ 	StringBuffer xml = new StringBuffer("          <moby:" + MobyTags.MOBYEXCEPTION + " " +
+ 					    MobyTags.SEVERITY + "=\"" + severity + "\" ");
+ 	if(refQueryID != null){
+ 	    xml.append(MobyTags.REFQUERYID + "=\"" + refQueryID + "\" ");
+ 	}
+ 	if(refElement != null){
+ 	    xml.append(MobyTags.REFELEMENT + "=\"" + refElement + "\" ");
+ 	}
+ 	xml.append(">\n");
+
+ 	xml.append("<moby:"+ MobyTags.EXCEPTIONCODE + ">"+code+"</moby:"+MobyTags.EXCEPTIONCODE+">");
+
+ 	if(getMessage() != null){
+ 	    xml.append("            <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage()+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
+ 	}
 
-// 	xml.append("          </moby:" + MobyTags.MOBYEXCEPTION + ">");
+ 	xml.append("          </moby:" + MobyTags.MOBYEXCEPTION + ">");
 
-// 	return xml.toString();
-//     }
+ 	return xml.toString();
+     }
 
 }




More information about the MOBY-guts mailing list