Remove StorageException from throws clauses

Change-Id: I48a0169293ddf766fbbd924cb310f9b8dacc58cf
This commit is contained in:
Dave Borowitz
2019-01-15 19:16:44 -08:00
parent a4fe999a75
commit bd856a44ba
386 changed files with 1022 additions and 1607 deletions

View File

@@ -16,7 +16,6 @@ package com.google.gerrit.server.restapi.change;
import com.google.common.collect.Iterables;
import com.google.common.flogger.FluentLogger;
import com.google.gerrit.exceptions.StorageException;
import com.google.gerrit.extensions.client.ListChangesOption;
import com.google.gerrit.extensions.client.ListOption;
import com.google.gerrit.extensions.common.ChangeInfo;
@@ -115,7 +114,7 @@ public class QueryChanges implements RestReadView<TopLevelResource>, DynamicOpti
@Override
public List<?> apply(TopLevelResource rsrc)
throws BadRequestException, AuthException, StorageException, PermissionBackendException {
throws BadRequestException, AuthException, PermissionBackendException {
List<List<ChangeInfo>> out;
try {
out = query();
@@ -128,8 +127,7 @@ public class QueryChanges implements RestReadView<TopLevelResource>, DynamicOpti
return out.size() == 1 ? out.get(0) : out;
}
private List<List<ChangeInfo>> query()
throws StorageException, QueryParseException, PermissionBackendException {
private List<List<ChangeInfo>> query() throws QueryParseException, PermissionBackendException {
if (imp.isDisabled()) {
throw new QueryParseException("query disabled");
}