Add "database has been closed" to DbConnectionClosedException

This commit is contained in:
James Seibel
2024-02-10 12:10:10 -06:00
parent 2651e3d435
commit 3f5622debf
@@ -20,7 +20,7 @@ public class DbConnectionClosedException extends SQLException
{
// 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");
return message.contains("connection closed") || message.contains("pointer is closed") || message.contains("database has been closed");
}
}