mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-03 05:51:28 +01:00
Catch ExceptionInInitializerError when creating extension
This commit is contained in:
parent
64e2655466
commit
3da7612f92
@ -231,7 +231,7 @@ public class ExtensionRegister {
|
||||
.ifPresent(caller -> registerListener.accept(factory, caller));
|
||||
} 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
Block a user