juergen 2002/06/27 02:03:22
Modified: src/webdav/server/org/apache/slide/webdav/method
VersionControlMethod.java
Log:
print the stacktrace in case of jdk exceptions only (not in the case of a
SlideException).
Revision Changes Path
1.17 +9 -4
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/VersionControlMethod.java
Index: VersionControlMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/VersionControlMethod.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- VersionControlMethod.java 14 Jun 2002 12:24:06 -0000 1.16
+++ VersionControlMethod.java 27 Jun 2002 09:03:22 -0000 1.17
@@ -75,6 +75,7 @@
import org.jdom.JDOMException;
import org.jdom.output.XMLOutputter;
+import org.apache.slide.common.SlideException;
import org.apache.slide.common.Uri;
import org.apache.slide.common.Domain;
import org.apache.slide.common.NamespaceAccessToken;
@@ -118,7 +119,7 @@
/**
* Constructor.
- *
+ *
* @param token the token for accessing the namespace
* @param config configuration of the WebDAV servlet
*/
@@ -206,6 +207,10 @@
catch (PreconditionViolationException e) {
sendPreconditionViolation(e);
throw e;
+ }
+ catch (SlideException e) {
+ resp.setStatus( getErrorCode(e) ); // special handling needed
+ throw new WebdavException( WebdavStatus.SC_ACCEPTED, false ); // abort
the TA
}
catch (Exception e) {
e.printStackTrace();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>