Merge "Address post-submit review of CheckAccess"

This commit is contained in:
David Pursehouse
2017-04-28 10:29:15 +00:00
committed by Gerrit Code Review
5 changed files with 14 additions and 18 deletions

View File

@@ -33,6 +33,7 @@ import com.google.gerrit.server.config.GetServerInfo;
import com.google.gerrit.server.config.SetDiffPreferences;
import com.google.gerrit.server.config.SetPreferences;
import com.google.gerrit.server.permissions.PermissionBackendException;
import com.google.gwtorm.server.OrmException;
import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.Singleton;
@@ -132,7 +133,7 @@ public class ServerImpl implements Server {
public AccessCheckInfo checkAccess(AccessCheckInput in) throws RestApiException {
try {
return checkAccess.get().apply(new ConfigResource(), in);
} catch (IOException | PermissionBackendException e) {
} catch (OrmException | IOException | PermissionBackendException e) {
throw new RestApiException("Cannot check access", e);
}
}