GetPureRevert: Remove declaration of unthrown AuthException
Change-Id: I4e1414f5551cf4185d6938d3f9449934012a699e
This commit is contained in:
@@ -97,8 +97,7 @@ public class GetPureRevert implements RestReadView<ChangeResource> {
|
||||
}
|
||||
|
||||
public PureRevertInfo getPureRevert(ChangeNotes notes)
|
||||
throws OrmException, IOException, BadRequestException, AuthException,
|
||||
ResourceConflictException {
|
||||
throws OrmException, IOException, BadRequestException, ResourceConflictException {
|
||||
PatchSet currentPatchSet = psUtil.current(dbProvider.get(), notes);
|
||||
if (currentPatchSet == null) {
|
||||
throw new ResourceConflictException("current revision is missing");
|
||||
|
||||
@@ -35,7 +35,6 @@ import com.google.gerrit.common.Nullable;
|
||||
import com.google.gerrit.common.data.LabelTypes;
|
||||
import com.google.gerrit.common.data.SubmitRecord;
|
||||
import com.google.gerrit.common.data.SubmitTypeRecord;
|
||||
import com.google.gerrit.extensions.restapi.AuthException;
|
||||
import com.google.gerrit.extensions.restapi.BadRequestException;
|
||||
import com.google.gerrit.extensions.restapi.ResourceConflictException;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
@@ -1288,7 +1287,7 @@ public class ChangeData {
|
||||
}
|
||||
try {
|
||||
return pureRevert.getPureRevert(notes()).isPureRevert;
|
||||
} catch (IOException | BadRequestException | AuthException | ResourceConflictException e) {
|
||||
} catch (IOException | BadRequestException | ResourceConflictException e) {
|
||||
throw new OrmException("could not compute pure revert", e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user