import org.simantics.scl.compiler.source.PrecompiledModuleSource;
import org.simantics.scl.compiler.source.repository.procedural.ProceduralValueDefinition;
import org.simantics.scl.compiler.top.ValueNotFound;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public abstract class ProceduralModuleSourceRepository implements ModuleSourceRepository {
+ private static final Logger LOGGER = LoggerFactory.getLogger(ProceduralModuleSourceRepository.class);
+
public static final String PREFIX = "procedural:";
protected abstract ModuleRepository getModuleRepository(UpdateListener listener);
try {
values = sourceModule.getValue("values");
} catch (ValueNotFound e) {
+ return null; // normal
+ } catch (Throwable e) {
+ // abnormal exception
+ LOGGER.error("Failed to find value " + moduleName + "/values", e);
return null;
}