@@ -44,31 +44,31 @@ internal class Store (private var userID: String?, private var customIDs: Map<St
44
44
cacheById = mutableMapOf ()
45
45
46
46
if (cachedResponse != null ) {
47
- try {
47
+ Statsig .errorBoundary.capture( {
48
48
val type = object : TypeToken <MutableMap <String , Cache >>() {}.type
49
49
cacheById = gson.fromJson(cachedResponse, type) ? : cacheById
50
- } catch (_ : Exception ) {
50
+ }, {
51
51
StatsigUtil .removeFromSharedPrefs(sharedPrefs, CACHE_BY_USER_KEY )
52
- }
52
+ })
53
53
}
54
54
55
55
stickyDeviceExperiments = mutableMapOf ()
56
56
if (cachedDeviceValues != null ) {
57
- try {
57
+ Statsig .errorBoundary.capture( {
58
58
val type = object : TypeToken <MutableMap <String , APIDynamicConfig >>() {}.type
59
59
stickyDeviceExperiments = gson.fromJson(cachedDeviceValues, type) ? : stickyDeviceExperiments
60
- } catch (_ : Exception ) {
60
+ }, {
61
61
StatsigUtil .removeFromSharedPrefs(sharedPrefs, STICKY_DEVICE_EXPERIMENTS_KEY )
62
- }
62
+ })
63
63
}
64
64
65
65
localOverrides = StatsigOverrides (mutableMapOf (), mutableMapOf ())
66
66
if (cachedLocalOverrides != null ) {
67
- try {
67
+ Statsig .errorBoundary.capture( {
68
68
localOverrides = gson.fromJson(cachedLocalOverrides, StatsigOverrides ::class .java)
69
- } catch (_ : Exception ) {
69
+ }, {
70
70
StatsigUtil .removeFromSharedPrefs(sharedPrefs, LOCAL_OVERRIDES_KEY )
71
- }
71
+ })
72
72
}
73
73
reason = EvaluationReason .Uninitialized
74
74
currentCache = loadCacheForCurrentUser()
0 commit comments