Improve Extension error handling
This commit is contained in:
parent
5f0ecb8bbe
commit
de884cd681
|
@ -408,7 +408,10 @@ public class DataValueGatherer {
|
|||
.ifPresent(data -> storeTable(parameters, conditions, data));
|
||||
} catch (DataExtensionMethodCallException methodError) {
|
||||
logFailure(methodError);
|
||||
} catch (Exception | NoClassDefFoundError | NoSuchFieldError | NoSuchMethodError unexpectedError) {
|
||||
} catch (RejectedExecutionException ignore) {
|
||||
// Processing or Database has shut down, which can be ignored
|
||||
} catch (Exception | ExceptionInInitializerError | NoClassDefFoundError | NoSuchFieldError |
|
||||
NoSuchMethodError unexpectedError) {
|
||||
logFailure(unexpectedError);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -198,7 +198,7 @@ public class ExtensionRegister {
|
|||
createExtension.apply(factory).ifPresent(this::register);
|
||||
} catch (NotReadyException | UnsupportedOperationException ignore) {
|
||||
// This exception signals that the extension can not be registered right now (Intended fail).
|
||||
} catch (Exception | NoClassDefFoundError | IncompatibleClassChangeError e) {
|
||||
} catch (Exception | ExceptionInInitializerError | NoClassDefFoundError | IncompatibleClassChangeError e) {
|
||||
// Places all exceptions to one exception with plugin information so that they can be reported.
|
||||
suppressException(factory.getClass(), e);
|
||||
}
|
||||
|
@ -213,7 +213,7 @@ public class ExtensionRegister {
|
|||
createExtension.apply(factory).forEach(this::register);
|
||||
} catch (NotReadyException | UnsupportedOperationException ignore) {
|
||||
// This exception signals that the extension can not be registered right now (Intended fail).
|
||||
} catch (Exception | NoClassDefFoundError | IncompatibleClassChangeError e) {
|
||||
} catch (Exception | ExceptionInInitializerError | NoClassDefFoundError | IncompatibleClassChangeError e) {
|
||||
// Places all exceptions to one exception with plugin information so that they can be reported.
|
||||
suppressException(factory.getClass(), e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue