Fix another repo closed issue

This commit is contained in:
James Seibel
2024-01-14 15:52:36 -06:00
parent 45c47533c2
commit 163c0bf1fa
@@ -16,6 +16,11 @@ public class DbConnectionClosedException extends SQLException
// helper methods //
public static boolean IsClosedException(SQLException e) { return e.getMessage().toLowerCase().contains("connection closed"); }
public static boolean IsClosedException(SQLException e)
{
// TODO long term we should prevent using repos that are closed, but for now this is the easier solution
String message = e.getMessage().toLowerCase();
return message.contains("connection closed") || message.contains("pointer is closed");
}
}