jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r452765 - /jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java
Date Wed, 04 Oct 2006 06:46:08 GMT
Author: angela
Date: Tue Oct  3 23:46:08 2006
New Revision: 452765

URL: http://svn.apache.org/viewvc?view=rev&rev=452765
Log:
- wrong status code, if Report.init fails.
- misleading message if creating report instance from class fails

Modified:
    jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java

Modified: jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java?view=diff&rev=452765&r1=452764&r2=452765
==============================================================================
--- jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java
(original)
+++ jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/report/ReportType.java
Tue Oct  3 23:46:08 2006
@@ -71,9 +71,12 @@
             Report report = (Report) reportClass.newInstance();
             report.init(resource, info);
             return report;
-        } catch (Exception e) {
+        } catch (IllegalAccessException e) {
             // should never occur
-            throw new DavException(DavServletResponse.SC_INTERNAL_SERVER_ERROR, "Failed to
register Report.");
+            throw new DavException(DavServletResponse.SC_INTERNAL_SERVER_ERROR, "Failed to
create new report (" + reportClass.getName() + ") from class: " + e.getMessage());
+        } catch (InstantiationException e) {
+            // should never occur
+            throw new DavException(DavServletResponse.SC_INTERNAL_SERVER_ERROR, "Failed to
create new report (" + reportClass.getName() + ") from class: " + e.getMessage());
         }
     }
 



Mime
View raw message