Merge "RestCollection: Allow throwing any RestApiException from list() method"
diff --git a/java/com/google/gerrit/extensions/restapi/RestCollection.java b/java/com/google/gerrit/extensions/restapi/RestCollection.java
index 46a4984..e79bde4 100644
--- a/java/com/google/gerrit/extensions/restapi/RestCollection.java
+++ b/java/com/google/gerrit/extensions/restapi/RestCollection.java
@@ -65,10 +65,11 @@
    * "q" parameter option to narrow the results.
    *
    * @return view to list the collection.
-   * @throws ResourceNotFoundException if the collection cannot be listed.
+   * @throws ResourceNotFoundException if the collection doesn't support listing.
    * @throws AuthException if the collection requires authentication.
+   * @throws RestApiException if the collection cannot be listed.
    */
-  RestView<P> list() throws ResourceNotFoundException, AuthException;
+  RestView<P> list() throws RestApiException;
 
   /**
    * Parse a path component into a resource handle.