aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITParsingException.java
blob: ac45accb7008a24683d272abdc40a6aec7ceac01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));
    }
}