Catch more exceptions

This commit is contained in:
JeremyStar™ 2024-06-09 19:36:44 +02:00
parent bee385b519
commit 1201d5ce7d
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -23,7 +23,6 @@ import de.staropensource.sosengine.base.annotations.EventListener;
import de.staropensource.sosengine.base.logging.Logger;
import de.staropensource.sosengine.base.types.CodePart;
import de.staropensource.sosengine.base.types.LogIssuer;
import lombok.AccessLevel;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.reflections.Reflections;
@ -119,7 +118,7 @@ public abstract class Event {
for (Method method : getAnnotatedMethods()) {
try {
method.invoke(null);
} catch (IllegalAccessException | InvocationTargetException ignored) {}
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NullPointerException | ExceptionInInitializerError ignored) {}
}
}