Search in sources :

Example 1 with DataExtensionMethodCallException

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);
    }
}
Also used : ExtensionDataBuilder(com.djrapitops.plan.extension.builder.ExtensionDataBuilder) DataExtensionMethodCallException(com.djrapitops.plan.exceptions.DataExtensionMethodCallException) DataExtensionMethodCallException(com.djrapitops.plan.exceptions.DataExtensionMethodCallException)

Aggregations

DataExtensionMethodCallException (com.djrapitops.plan.exceptions.DataExtensionMethodCallException)1 ExtensionDataBuilder (com.djrapitops.plan.extension.builder.ExtensionDataBuilder)1