jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r654796 - /jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java
Date Fri, 09 May 2008 13:23:29 GMT
Author: angela
Date: Fri May  9 06:23:28 2008
New Revision: 654796

URL: http://svn.apache.org/viewvc?rev=654796&view=rev
Log:
separately deal with status code NOT_IMPLEMENTED (501)

Modified:
    jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java

Modified: jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java?rev=654796&r1=654795&r2=654796&view=diff
==============================================================================
--- jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java
(original)
+++ jackrabbit/sandbox/spi/spi2dav/src/main/java/org/apache/jackrabbit/spi2dav/ExceptionConverter.java
Fri May  9 06:23:28 2008
@@ -96,6 +96,7 @@
             case DavServletResponse.SC_METHOD_NOT_ALLOWED : return new ConstraintViolationException(msg);
             case DavServletResponse.SC_CONFLICT : return new InvalidItemStateException(msg);
             case DavServletResponse.SC_PRECONDITION_FAILED : return new LockException(msg);
+            case DavServletResponse.SC_NOT_IMPLEMENTED: throw new UnsupportedOperationException("Missing
implementation. " + ((method != null) ? "Method " + method + " could not be executed." : ""));
             default: return new RepositoryException(msg);
         }
     }



Mime
View raw message