Remove StorageException from throws clauses
Change-Id: I48a0169293ddf766fbbd924cb310f9b8dacc58cf
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package com.google.gerrit.server.restapi.change;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.gerrit.exceptions.StorageException;
|
||||
import com.google.gerrit.extensions.api.changes.SubmitInput;
|
||||
import com.google.gerrit.extensions.restapi.BadRequestException;
|
||||
import com.google.gerrit.extensions.restapi.BinaryResult;
|
||||
@@ -82,8 +81,8 @@ public class PreviewSubmit implements RestReadView<RevisionResource> {
|
||||
|
||||
@Override
|
||||
public BinaryResult apply(RevisionResource rsrc)
|
||||
throws StorageException, RestApiException, UpdateException, IOException,
|
||||
ConfigInvalidException, PermissionBackendException {
|
||||
throws RestApiException, UpdateException, IOException, ConfigInvalidException,
|
||||
PermissionBackendException {
|
||||
if (Strings.isNullOrEmpty(format)) {
|
||||
throw new BadRequestException("format is not specified");
|
||||
}
|
||||
@@ -110,8 +109,8 @@ public class PreviewSubmit implements RestReadView<RevisionResource> {
|
||||
}
|
||||
|
||||
private BinaryResult getBundles(RevisionResource rsrc, ArchiveFormat f)
|
||||
throws StorageException, RestApiException, UpdateException, IOException,
|
||||
ConfigInvalidException, PermissionBackendException {
|
||||
throws RestApiException, UpdateException, IOException, ConfigInvalidException,
|
||||
PermissionBackendException {
|
||||
IdentifiedUser caller = rsrc.getUser().asIdentifiedUser();
|
||||
Change change = rsrc.getChange();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user