Rename OrmException to StorageException and move to exceptions package
Subclasses are also renamed: * OrmDuplicateKeyException -> DuplicateKeyException * OrmRuntimeException -> StorageRuntimeException Change-Id: I0e934f177e98667ec7cb9912f246ac649a4efd99
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
package com.google.gerrit.server.restapi.change;
|
||||
|
||||
import com.google.gerrit.exceptions.StorageException;
|
||||
import com.google.gerrit.extensions.api.changes.ReviewerInfo;
|
||||
import com.google.gerrit.extensions.restapi.MethodNotAllowedException;
|
||||
import com.google.gerrit.extensions.restapi.RestReadView;
|
||||
@@ -24,7 +25,6 @@ import com.google.gerrit.server.change.ReviewerJson;
|
||||
import com.google.gerrit.server.change.ReviewerResource;
|
||||
import com.google.gerrit.server.change.RevisionResource;
|
||||
import com.google.gerrit.server.permissions.PermissionBackendException;
|
||||
import com.google.gwtorm.server.OrmException;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.LinkedHashMap;
|
||||
@@ -47,7 +47,7 @@ class ListRevisionReviewers implements RestReadView<RevisionResource> {
|
||||
|
||||
@Override
|
||||
public List<ReviewerInfo> apply(RevisionResource rsrc)
|
||||
throws OrmException, MethodNotAllowedException, PermissionBackendException {
|
||||
throws StorageException, MethodNotAllowedException, PermissionBackendException {
|
||||
if (!rsrc.isCurrent()) {
|
||||
throw new MethodNotAllowedException("Cannot list reviewers on non-current patch set");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user