Merge "Catch IllegalStateException in StatsManager"

This commit is contained in:
TreeHugger Robot
2020-02-21 01:16:39 +00:00
committed by Android (Google) Code Review

View File

@@ -159,6 +159,9 @@ public final class StatsManager {
throw new StatsUnavailableException("could not connect", e);
} catch (SecurityException e) {
throw new StatsUnavailableException(e.getMessage(), e);
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to addConfig in statsmanager");
throw new StatsUnavailableException(e.getMessage(), e);
}
}
}
@@ -195,6 +198,9 @@ public final class StatsManager {
throw new StatsUnavailableException("could not connect", e);
} catch (SecurityException e) {
throw new StatsUnavailableException(e.getMessage(), e);
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to removeConfig in statsmanager");
throw new StatsUnavailableException(e.getMessage(), e);
}
}
}
@@ -391,6 +397,9 @@ public final class StatsManager {
throw new StatsUnavailableException("could not connect", e);
} catch (SecurityException e) {
throw new StatsUnavailableException(e.getMessage(), e);
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to getReports in statsmanager");
throw new StatsUnavailableException(e.getMessage(), e);
}
}
}
@@ -428,6 +437,9 @@ public final class StatsManager {
throw new StatsUnavailableException("could not connect", e);
} catch (SecurityException e) {
throw new StatsUnavailableException(e.getMessage(), e);
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to getStatsMetadata in statsmanager");
throw new StatsUnavailableException(e.getMessage(), e);
}
}
}
@@ -469,6 +481,9 @@ public final class StatsManager {
+ "registered experiment IDs");
}
throw new StatsUnavailableException("could not connect", e);
} catch (IllegalStateException e) {
Log.e(TAG, "Failed to getRegisteredExperimentIds in statsmanager");
throw new StatsUnavailableException(e.getMessage(), e);
}
}
}