Throw StorageException instead of IOException from Index

Change-Id: I6b2c4442afbdbb678b5a8f1bc00f83b99f759734
This commit is contained in:
Dave Borowitz
2019-01-15 19:38:14 -08:00
parent 40814dd46d
commit eac1ded2f8
18 changed files with 104 additions and 118 deletions

View File

@@ -22,7 +22,6 @@ import com.google.common.collect.FluentIterable;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.flogger.FluentLogger;
import com.google.gerrit.exceptions.StorageException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
@@ -179,7 +178,7 @@ public class Schema<T> {
Object v;
try {
v = f.get(obj);
} catch (StorageException e) {
} catch (RuntimeException e) {
logger.atSevere().withCause(e).log(
"error getting field %s of %s", f.getName(), obj);
return null;