Fix VelocityCore

This commit is contained in:
2025-09-29 17:14:00 +02:00
parent d850894a00
commit c394478632
5 changed files with 18 additions and 15 deletions
@@ -82,7 +82,7 @@ public abstract class AbstractLinker<T> {
try {
any = clazz.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new SecurityException(e.getMessage());
throw new SecurityException(e.getMessage(), e);
}
instances.put(clazz, any);
@@ -104,7 +104,7 @@ public abstract class AbstractLinker<T> {
try {
field.set(o, instances.get(field.getType()));
} catch (IllegalAccessException e) {
throw new SecurityException(e);
throw new SecurityException(e.getMessage(), e);
}
}
}