diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-08-20 19:13:31 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-08-20 19:30:43 +0300 |
commit | af028c27f8b103e3ee86f5d7f09a4c1e3fc303d2 (patch) | |
tree | dce1e80e04da13f9fdfcac200da3e2c794ff307a /src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java | |
parent | c684710b01ed4d1b9b5363c392e24f31d31c527a (diff) | |
download | CITResewn-af028c27f8b103e3ee86f5d7f09a4c1e3fc303d2.tar.gz CITResewn-af028c27f8b103e3ee86f5d7f09a4c1e3fc303d2.tar.bz2 CITResewn-af028c27f8b103e3ee86f5d7f09a4c1e3fc303d2.zip |
Type/item parsing & standard exception format for skipped CITs
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java b/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java new file mode 100644 index 0000000..e48f857 --- /dev/null +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/ex/CITParseException.java @@ -0,0 +1,13 @@ +package shcm.shsupercm.fabric.citresewn.ex; + +import net.minecraft.resource.ResourcePack; +import net.minecraft.util.Identifier; + +/** + * Thrown when a cit failed to be parsed + */ +public class CITParseException extends Exception { + public CITParseException(ResourcePack resourcePack, Identifier identifier, String message) { + super("Skipped: " + message + " in " + resourcePack.getName() + " -> " + identifier.getPath()); + } +} |