Merge "RestCollection: Allow throwing any RestApiException from list() method"

This commit is contained in:
Edwin Kempin
2018-06-11 06:46:16 +00:00
committed by Gerrit Code Review

View File

@@ -65,10 +65,11 @@ public interface RestCollection<P extends RestResource, R extends RestResource>
* "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.