aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/ex
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-10-06 19:29:49 +0300
committerSHsuperCM <shsupercm@gmail.com>2022-10-08 06:13:49 +0300
commit237adf03cc55b4120330e2fbc4bc4178c0361f2d (patch)
tree58169e836ef42530fac2a1bd1daec81379bfa57d /src/main/java/shcm/shsupercm/fabric/citresewn/ex
parent996b054b66051030a8e4781d7eda97d1c4decb71 (diff)
downloadCITResewn-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.java17
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/ex/UnknownCITTypeException.java12
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);
- }
-}