diff --git a/java/com/google/gerrit/extensions/restapi/RestCollection.java b/java/com/google/gerrit/extensions/restapi/RestCollection.java index 46a4984b58..e79bde4f63 100644 --- a/java/com/google/gerrit/extensions/restapi/RestCollection.java +++ b/java/com/google/gerrit/extensions/restapi/RestCollection.java @@ -65,10 +65,11 @@ public interface RestCollection

* "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

list() throws ResourceNotFoundException, AuthException; + RestView

list() throws RestApiException; /** * Parse a path component into a resource handle.