mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-03 06:57:41 +01:00
Added context to raw stack trace dump after exception.
This commit is contained in:
parent
672d43fb67
commit
1e920825ef
@ -57,14 +57,14 @@ public class BSkyBlock extends JavaPlugin {
|
|||||||
//settings.saveSettings();
|
//settings.saveSettings();
|
||||||
settings = settings.loadSettings();
|
settings = settings.loadSettings();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
getLogger().severe("Settings could not be loaded" + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save a backup of settings to the database so it can be checked next time
|
// Save a backup of settings to the database so it can be checked next time
|
||||||
try {
|
try {
|
||||||
settings.saveBackup();
|
settings.saveBackup();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
getLogger().severe("Settings backup could not be saved" + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
playersManager = new PlayersManager(this);
|
playersManager = new PlayersManager(this);
|
||||||
|
@ -39,7 +39,7 @@ public interface ISettings<T> {
|
|||||||
|
|
||||||
// --------------- Loader ------------------
|
// --------------- Loader ------------------
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
default T loadSettings() throws InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, SecurityException, ClassNotFoundException, IntrospectionException, SQLException {
|
default T loadSettings() throws Exception {
|
||||||
// See if this settings object already exists in the database
|
// See if this settings object already exists in the database
|
||||||
AbstractDatabaseHandler<T> dbhandler = (AbstractDatabaseHandler<T>) BSBDatabase.getDatabase().getHandler(this.getClass());
|
AbstractDatabaseHandler<T> dbhandler = (AbstractDatabaseHandler<T>) BSBDatabase.getDatabase().getHandler(this.getClass());
|
||||||
T dbConfig = null;
|
T dbConfig = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user