Adapt to new StorageException class name and package
Change-Id: Id1deb5c8b757900c2b6e32d692bc195e3fd5693b
diff --git a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
index 9f139c1..20538b9 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/singleusergroup/SingleUserGroup.java
@@ -23,6 +23,7 @@
import com.google.gerrit.common.Nullable;
import com.google.gerrit.common.data.GroupDescription;
import com.google.gerrit.common.data.GroupReference;
+import com.google.gerrit.exceptions.StorageException;
import com.google.gerrit.extensions.registration.DynamicSet;
import com.google.gerrit.index.query.QueryParseException;
import com.google.gerrit.reviewdb.client.Account;
@@ -39,7 +40,6 @@
import com.google.gerrit.server.query.account.AccountPredicates;
import com.google.gerrit.server.query.account.AccountQueryBuilder;
import com.google.gerrit.server.query.account.AccountQueryProcessor;
-import com.google.gwtorm.server.OrmException;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Provider;
@@ -148,7 +148,7 @@
.query(AccountPredicates.andActive(queryBuilder.defaultQuery(name))).entities().stream()
.map(SingleUserGroup::accountToGroup)
.collect(toList());
- } catch (OrmException | QueryParseException err) {
+ } catch (StorageException | QueryParseException err) {
logger.atWarning().withCause(err).log("Cannot suggest users");
return Collections.emptyList();
}