Files
Angelica/src/main/java/kroppeb/stareval/exception/UnexpectedCharacterException.java
T
Darren Eberly bed724ba59 Support for custom uniforms (#902)
* 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
2025-03-18 10:04:31 -07:00

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);
}
}