blob: 964b58d83d4aed576180e2a4f0a60464fee3710e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package shcm.shsupercm.fabric.citresewn.ex;
import shcm.shsupercm.fabric.citresewn.pack.format.PropertyGroup;
public class CITParsingException extends Exception {
public CITParsingException(String message, PropertyGroup propertyGroup, int position) {
super("Errored while parsing CIT: " + descriptionOf(message, propertyGroup, position));
}
public static String descriptionOf(String message, PropertyGroup propertyGroup, int position) {
return message + " at " + position + " in " + propertyGroup.identifier.toString() + " from " + propertyGroup.packName;
}
}
|