diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-10-06 19:29:49 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-10-08 06:13:49 +0300 |
commit | 237adf03cc55b4120330e2fbc4bc4178c0361f2d (patch) | |
tree | 58169e836ef42530fac2a1bd1daec81379bfa57d /src/main/java/shcm/shsupercm/fabric/citresewn/ex | |
parent | 996b054b66051030a8e4781d7eda97d1c4decb71 (diff) | |
download | CITResewn-237adf03cc55b4120330e2fbc4bc4178c0361f2d.tar.gz CITResewn-237adf03cc55b4120330e2fbc4bc4178c0361f2d.tar.bz2 CITResewn-237adf03cc55b4120330e2fbc4bc4178c0361f2d.zip |
Moved CIT exceptions to the cit package
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/ex')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParsingException.java | 17 | ||||
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/ex/UnknownCITTypeException.java | 12 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParsingException.java b/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParsingException.java deleted file mode 100644 index f897ba7..0000000 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParsingException.java +++ /dev/null @@ -1,17 +0,0 @@ -package shcm.shsupercm.fabric.citresewn.ex; - -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)); - } -} diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/ex/UnknownCITTypeException.java b/src/main/java/shcm/shsupercm/fabric/citresewn/ex/UnknownCITTypeException.java deleted file mode 100644 index 23f9c82..0000000 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/ex/UnknownCITTypeException.java +++ /dev/null @@ -1,12 +0,0 @@ -package shcm.shsupercm.fabric.citresewn.ex; - -import shcm.shsupercm.fabric.citresewn.pack.format.PropertyGroup; - -/** - * Thrown when a property group contains an unrecognized value associated with the "type" key. - */ -public class UnknownCITTypeException extends CITParsingException { - public UnknownCITTypeException(PropertyGroup propertyGroup, int position) { - super("Unknown type", propertyGroup, position); - } -} |