use of com.djrapitops.plan.exceptions.DataExtensionMethodCallException in project Plan by plan-player-analytics.
the class DataValueGatherer method addDataFromAnotherBuilder.
private void addDataFromAnotherBuilder(ExtensionDataBuilder dataBuilder, Parameters parameters, ExtensionMethod provider) {
try {
ExtensionDataBuilder providedBuilder = callMethod(provider, parameters, ExtensionDataBuilder.class);
dataBuilder.addAll(providedBuilder);
} catch (DataExtensionMethodCallException methodError) {
logFailure(methodError);
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
logFailure(unexpectedError);
}
}
Aggregations