mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
add int constructor for Java9+ compatibility
This commit is contained in:
parent
ecc4be2d25
commit
e610c13e69
|
@ -25,4 +25,8 @@ public class TIndexOutOfBoundsException extends TRuntimeException {
|
||||||
public TIndexOutOfBoundsException(String message) {
|
public TIndexOutOfBoundsException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public TIndexOutOfBoundsException(int index) {
|
||||||
|
super("Index out of range: " + index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user