forked from StarOpenSource/Engine
Catch more exceptions
This commit is contained in:
parent
bee385b519
commit
1201d5ce7d
1 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@ import de.staropensource.sosengine.base.annotations.EventListener;
|
||||||
import de.staropensource.sosengine.base.logging.Logger;
|
import de.staropensource.sosengine.base.logging.Logger;
|
||||||
import de.staropensource.sosengine.base.types.CodePart;
|
import de.staropensource.sosengine.base.types.CodePart;
|
||||||
import de.staropensource.sosengine.base.types.LogIssuer;
|
import de.staropensource.sosengine.base.types.LogIssuer;
|
||||||
import lombok.AccessLevel;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.reflections.Reflections;
|
import org.reflections.Reflections;
|
||||||
|
@ -119,7 +118,7 @@ public abstract class Event {
|
||||||
for (Method method : getAnnotatedMethods()) {
|
for (Method method : getAnnotatedMethods()) {
|
||||||
try {
|
try {
|
||||||
method.invoke(null);
|
method.invoke(null);
|
||||||
} catch (IllegalAccessException | InvocationTargetException ignored) {}
|
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NullPointerException | ExceptionInInitializerError ignored) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue