diff options
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java new file mode 100644 index 0000000..ac45acc --- /dev/null +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java @@ -0,0 +1,17 @@ +package shcm.shsupercm.fabric.citresewn.cit; + +import shcm.shsupercm.fabric.citresewn.pack.format.PropertyGroup; + +/** + * Thrown if errored while parsing the properties of a {@link PropertyGroup}. + * @see PropertyGroup#messageWithDescriptorOf(String, int) + */ +public class CITParsingException extends Exception { + public CITParsingException(String message, PropertyGroup propertyGroup, int position, Throwable throwable) { + super("Errored while parsing CIT: " + propertyGroup.messageWithDescriptorOf(message, position), throwable); + } + + public CITParsingException(String message, PropertyGroup propertyGroup, int position) { + super("Errored while parsing CIT: " + propertyGroup.messageWithDescriptorOf(message, position)); + } +} |