Author: reschke
Date: Fri Feb 13 15:44:38 2015
New Revision: 1659582

URL: http://svn.apache.org/r1659582
Log:
OAK-2518 - backport DocumentStoreException (OAK-1961) to Oak 1.0

remove exception from DocumentStore interface as well

Modified:
    
jackrabbit/oak/branches/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java

Modified: 
jackrabbit/oak/branches/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java?rev=1659582&r1=1659581&r2=1659582&view=diff
==============================================================================
--- 
jackrabbit/oak/branches/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
 (original)
+++ 
jackrabbit/oak/branches/1.0/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentStore.java
 Fri Feb 13 15:44:38 2015
@@ -21,8 +21,6 @@ import java.util.List;
 import javax.annotation.CheckForNull;
 import javax.annotation.Nonnull;
 
-import org.apache.jackrabbit.mk.api.MicroKernelException;
-
 /**
  * The interface for the backend storage for documents.
  * <p>
@@ -160,11 +158,9 @@ public interface DocumentStore {
      * @param collection the collection
      * @param update the update operation
      * @return the old document or <code>null</code> if it didn't exist before.
-     * @throws MicroKernelException if the operation failed.
      */
     @CheckForNull
-    <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp 
update)
-            throws MicroKernelException;
+    <T extends Document> T createOrUpdate(Collection<T> collection, UpdateOp 
update);
 
     /**
      * Performs a conditional update (e.g. using
@@ -177,11 +173,9 @@ public interface DocumentStore {
      * @param update the update operation with the condition
      * @return the old document or <code>null</code> if the condition is not 
met or
      *         if the document wasn't found
-     * @throws MicroKernelException if the operation failed.
      */
     @CheckForNull
-    <T extends Document> T findAndUpdate(Collection<T> collection, UpdateOp 
update)
-            throws MicroKernelException;
+    <T extends Document> T findAndUpdate(Collection<T> collection, UpdateOp 
update);
 
     /**
      * Invalidate the document cache.


Reply via email to