[MOBY-guts] biomoby commit

Martin Senger senger at pub.open-bio.org
Tue Nov 15 03:25:51 UTC 2005


senger
Mon Nov 14 22:25:51 EST 2005
Update of /home/repository/moby/moby-live/Java/src/config/templates
In directory pub.open-bio.org:/tmp/cvs-serv29860/src/config/templates

Modified Files:
	ServiceSkeletonTemplate.java 
Log Message:


moby-live/Java/src/config/templates ServiceSkeletonTemplate.java,1.2,1.3
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/config/templates/ServiceSkeletonTemplate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- /home/repository/moby/moby-live/Java/src/config/templates/ServiceSkeletonTemplate.java	2005/09/19 08:08:32	1.2
+++ /home/repository/moby/moby-live/Java/src/config/templates/ServiceSkeletonTemplate.java	2005/11/15 03:25:51	1.3
@@ -59,8 +59,12 @@
 	    // and return an XML back
 	    return mobyOutput.toXML();
 
-	} catch (org.biomoby.shared.MobyException e) {
-	    return error (e.getMessage(), mobyOutput);
+	} catch (Throwable e) {
+	    boolean mobyException = (e instanceof org.biomoby.shared.MobyException);
+	    java.io.StringWriter sw = new java.io.StringWriter (500);
+	    if (e.getCause() != null ||	(! mobyException))
+		e.printStackTrace (new java.io.PrintWriter (sw));
+	    return error (e.getMessage() + "\n" + sw.toString(), mobyOutput);
 	}
     }
 




More information about the MOBY-guts mailing list