mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-13 10:51:24 +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));
|
.ifPresent(caller -> registerListener.accept(factory, caller));
|
||||||
} catch (NotReadyException | UnsupportedOperationException ignore) {
|
} catch (NotReadyException | UnsupportedOperationException ignore) {
|
||||||
// This exception signals that the extension can not be registered right now (Intended fail).
|
// 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.
|
// Places all exceptions to one exception with plugin information so that they can be reported.
|
||||||
suppressException(factory.getClass(), e);
|
suppressException(factory.getClass(), e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user