mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 03:25:17 +00:00
* wip backport of custom uniforms * Functioning custom uniforms maybe? * Workon separating dynamic/non-dynamic uniforms and making variables available to custom uniforms (currently the JVM dies horribly) * wip * It no longer crashes horrifically * star imports
20 lines
669 B
Java
20 lines
669 B
Java
package kroppeb.stareval.exception;
|
|
|
|
public class UnexpectedCharacterException extends ParseException {
|
|
public UnexpectedCharacterException(char expected, char actual, int index) {
|
|
this("Expected to read '" + expected + "' but got '" + actual + "' at index " + index);
|
|
}
|
|
|
|
public UnexpectedCharacterException(char actual, int index) {
|
|
this("Read an unexpected character '" + actual + "' at index " + index);
|
|
}
|
|
|
|
public UnexpectedCharacterException(String expected, char actual, int index) {
|
|
this("Expected to read " + expected + " but got '" + actual + "' at index " + index);
|
|
}
|
|
|
|
private UnexpectedCharacterException(String message) {
|
|
super(message);
|
|
}
|
|
}
|