Add ArrayIndexOutOfBoundsException(int) and ClassNotFoundException.getException().

This commit is contained in:
Marcin Olawski 2015-02-07 21:12:04 +01:00
parent 21e6bd8598
commit 6462c159aa
2 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,10 @@ public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException {
this(null, cause);
}
public ArrayIndexOutOfBoundsException(int idx) {
this("Array index out of range: " + idx);
}
public ArrayIndexOutOfBoundsException() {
this(null, null);
}

View File

@ -25,4 +25,9 @@ public class ClassNotFoundException extends Exception {
public ClassNotFoundException() {
this(null, null);
}
public Throwable getException() {
return cause2;
}
}