chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1615944 - in /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl: atompub/CmisAtomPubServlet.java browser/CmisBrowserBindingServlet.java
Date Tue, 05 Aug 2014 15:28:54 GMT
Author: fmui
Date: Tue Aug  5 15:28:53 2014
New Revision: 1615944

URL: http://svn.apache.org/r1615944
Log:
added logging for storage exceptions

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java?rev=1615944&r1=1615943&r2=1615944&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/CmisAtomPubServlet.java
Tue Aug  5 15:28:53 2014
@@ -288,6 +288,10 @@ public class CmisAtomPubServlet extends 
 
         if (ex instanceof CmisRuntimeException) {
             LOG.error(ex.getMessage(), ex);
+        } else if (ex instanceof CmisStorageException) {
+            LOG.error(ex.getMessage(), ex);
+            statusCode = getErrorCode((CmisStorageException) ex);
+            exceptionName = ((CmisStorageException) ex).getExceptionName();
         } else if (ex instanceof CmisBaseException) {
             statusCode = getErrorCode((CmisBaseException) ex);
             exceptionName = ((CmisBaseException) ex).getExceptionName();

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java?rev=1615944&r1=1615943&r2=1615944&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java
Tue Aug  5 15:28:53 2014
@@ -437,6 +437,10 @@ public class CmisBrowserBindingServlet e
 
             if (ex instanceof CmisRuntimeException) {
                 LOG.error(ex.getMessage(), ex);
+            } else if (ex instanceof CmisStorageException) {
+                LOG.error(ex.getMessage(), ex);
+                statusCode = getErrorCode((CmisStorageException) ex);
+                exceptionName = ((CmisStorageException) ex).getExceptionName();
             } else if (ex instanceof CmisBaseException) {
                 statusCode = getErrorCode((CmisBaseException) ex);
                 exceptionName = ((CmisBaseException) ex).getExceptionName();



Mime
View raw message