in core/src/main/java/com/alibaba/smart/framework/engine/util/ClassUtil.java [93:112]
public static Object createNewInstance(Constructor constructor, Object... args) throws EngineException {
String className = constructor.getClass().getName();
try {
Object newInstance = constructor.newInstance(args);
return newInstance;
} catch (IllegalAccessException e) {
throw new EngineException("Unable to load class " + className + ". Initial cause was " + e.getMessage(), e);
} catch (InstantiationException e) {
throw new EngineException("Unable to load class " + className + ". Initial cause was " + e.getMessage(), e);
} catch (SecurityException e) {
throw new EngineException("Unable to load class " + className + ". Initial cause was " + e.getMessage(), e);
} catch (IllegalArgumentException e) {
throw new EngineException("Unable to load class " + className + ". Initial cause was " + e.getMessage(), e);
} catch (InvocationTargetException e) {
throw new EngineException("Unable to load class " + className + ". Initial cause was "
+ e.getCause().getMessage(), e.getCause());
}
}