9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

suppress json syntax exceptions from being reported to sentry

This commit is contained in:
Julian Krings
2025-09-21 15:47:29 +02:00
parent 9c073ecbcb
commit 7e7933858b

View File

@@ -1,5 +1,6 @@
package com.volmit.iris.util.misc;
import com.google.gson.JsonSyntaxException;
import com.volmit.iris.BuildConstants;
import com.volmit.iris.Iris;
import com.volmit.iris.core.IrisSettings;
@@ -74,7 +75,9 @@ public class Bindings {
}
private static boolean suppress(Throwable e) {
return (e instanceof IllegalStateException ex && "zip file closed".equals(ex.getMessage())) || e instanceof JSONException;
return (e instanceof IllegalStateException ex && "zip file closed".equals(ex.getMessage()))
|| e instanceof JSONException
|| e instanceof JsonSyntaxException;
}