diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java index a27892c69..8fa33a75c 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TIndexOutOfBoundsException.java @@ -25,4 +25,8 @@ public class TIndexOutOfBoundsException extends TRuntimeException { public TIndexOutOfBoundsException(String message) { super(message); } + + public TIndexOutOfBoundsException(int index) { + super("Index out of range: " + index); + } }