diff options
Diffstat (limited to 'src/main/java/ftbsc/lll/processor/exceptions')
-rw-r--r-- | src/main/java/ftbsc/lll/processor/exceptions/MappingNotFoundException.java | 7 | ||||
-rw-r--r-- | src/main/java/ftbsc/lll/processor/exceptions/MappingsFileNotFoundException.java | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/lll/processor/exceptions/MappingNotFoundException.java b/src/main/java/ftbsc/lll/processor/exceptions/MappingNotFoundException.java new file mode 100644 index 0000000..ca1f75c --- /dev/null +++ b/src/main/java/ftbsc/lll/processor/exceptions/MappingNotFoundException.java @@ -0,0 +1,7 @@ +package ftbsc.lll.processor.exceptions; + +public class MappingNotFoundException extends RuntimeException { + public MappingNotFoundException(String mapping) { + super("Could not find mapping for " + mapping + "!"); + } +} diff --git a/src/main/java/ftbsc/lll/processor/exceptions/MappingsFileNotFoundException.java b/src/main/java/ftbsc/lll/processor/exceptions/MappingsFileNotFoundException.java new file mode 100644 index 0000000..8636226 --- /dev/null +++ b/src/main/java/ftbsc/lll/processor/exceptions/MappingsFileNotFoundException.java @@ -0,0 +1,10 @@ +package ftbsc.lll.processor.exceptions; + +/** + * Thrown upon failure to locate the output.tsrg file at runtime. + */ +public class MappingsFileNotFoundException extends RuntimeException { + public MappingsFileNotFoundException() { + super("Could not find a mappings file in the specified location!"); + } +} |