mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
Add StringIndexOutOfBoundsException and use it in String
This commit is contained in:
19
classpath/java/lang/StringIndexOutOfBoundsException.java
Normal file
19
classpath/java/lang/StringIndexOutOfBoundsException.java
Normal file
@ -0,0 +1,19 @@
|
||||
package java.lang;
|
||||
|
||||
/**
|
||||
* Used by <code>String</code> to signal that a given index is either less than
|
||||
* or greater than the allowed range.
|
||||
*/
|
||||
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException {
|
||||
private static final long serialVersionUID = -6762910422159637258L;
|
||||
|
||||
public StringIndexOutOfBoundsException(int index) {
|
||||
super("String index out of range: "+index);
|
||||
}
|
||||
|
||||
public StringIndexOutOfBoundsException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public StringIndexOutOfBoundsException() {}
|
||||
}
|
Reference in New Issue
Block a user