--- /dev/null
+package org.simantics.scl.compiler.errors;\r
+\r
+\r
+@SuppressWarnings("rawtypes")\r
+public enum DoesNotExist implements Failable {\r
+ INSTANCE;\r
+\r
+ @SuppressWarnings("unchecked")\r
+ public static <T> Failable<T> getInstance() {\r
+ return INSTANCE;\r
+ }\r
+\r
+ @Override\r
+ public Object getResult() {\r
+ throw new IllegalStateException("Module does not exist.");\r
+ }\r
+\r
+ @Override\r
+ public boolean didSucceed() {\r
+ return false;\r
+ }\r
+ \r
+ @Override\r
+ public String toString() {\r
+ return "DoesNotExist";\r
+ }\r
+\r
+ @Override\r
+ public String getDescription() {\r
+ return "Module does not exist.";\r
+ }\r
+}\r