9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-26 18:19:10 +00:00

Improve initialization logic

This commit is contained in:
William
2022-07-11 13:18:36 +01:00
parent ff1c8cddb5
commit 723c79b3a9
3 changed files with 105 additions and 123 deletions

View File

@@ -0,0 +1,12 @@
package net.william278.husksync;
import org.jetbrains.annotations.NotNull;
/**
* Indicates an exception occurred while initialising the HuskSync plugin
*/
public class HuskSyncInitializationException extends RuntimeException {
public HuskSyncInitializationException(@NotNull String message) {
super(message);
}
}

View File

@@ -114,7 +114,7 @@ public class MySqlDatabase extends Database {
getLogger().log(Level.SEVERE, "Failed to perform database setup: " + e.getMessage());
}
} catch (Exception e) {
e.printStackTrace();
getLogger().log(Level.SEVERE, "An unhandled exception occurred during database setup!", e);
}
return false;
}