From 3f5622debf48b6f018ffe6323a0fb93abf1daa8f Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 10 Feb 2024 12:10:10 -0600 Subject: [PATCH] Add "database has been closed" to DbConnectionClosedException --- .../distanthorizons/core/sql/DbConnectionClosedException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/sql/DbConnectionClosedException.java b/core/src/main/java/com/seibel/distanthorizons/core/sql/DbConnectionClosedException.java index 75a8b769d..b4e8cffb0 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/sql/DbConnectionClosedException.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/sql/DbConnectionClosedException.java @@ -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"); } }