Remove StorageException from throws clauses
Change-Id: I48a0169293ddf766fbbd924cb310f9b8dacc58cf
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user