Use consistency for exception param names.

This commit is contained in:
Jeremy Wood 2023-03-26 14:11:05 -04:00
parent 75998ae2c3
commit 44dacdceb1
No known key found for this signature in database
GPG Key ID: C5BAD04C77B91B4B

View File

@ -181,7 +181,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
private void loadAnchors() {
Try.of(() -> anchorManagerProvider.get())
.onSuccess(AnchorManager::loadAnchors)
.onFailure(throwable -> Logging.severe("Failed to load anchors", throwable));
.onFailure(e -> Logging.severe("Failed to load anchors", e));
}
/**
@ -206,7 +206,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
serviceLocator.getAllServices(MultiverseCommand.class)
.forEach(commandManager::registerCommand);
})
.onFailure(throwable -> Logging.severe("Failed to register commands", throwable));
.onFailure(e -> Logging.severe("Failed to register commands", e));
}
/**
@ -219,7 +219,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
commandManager.getLocales().addFileResClassLoader(this);
commandManager.getLocales().addMessageBundles("multiverse-core");
})
.onFailure(throwable -> Logging.severe("Failed to register locales", throwable));
.onFailure(e -> Logging.severe("Failed to register locales", e));
}
/**
@ -231,7 +231,7 @@ public class MultiverseCore extends JavaPlugin implements MVCore {
serviceLocator.getAllServices(Destination.class)
.forEach(destinationsProvider::registerDestination);
})
.onFailure(throwable -> Logging.severe("Failed to register destinations", throwable));
.onFailure(e -> Logging.severe("Failed to register destinations", e));
}
/**