public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
Constructor and Description |
---|
StringIndexOutOfBoundsException()
Constructs a new
StringIndexOutOfBoundsException that includes
the current stack trace. |
StringIndexOutOfBoundsException(int index)
Constructs a new
StringIndexOutOfBoundsException with the current
stack trace and a detail message that is based on the specified invalid
index . |
StringIndexOutOfBoundsException(int sourceLength,
int index)
Used internally for consistent high-quality error reporting.
|
StringIndexOutOfBoundsException(int sourceLength,
int offset,
int count)
Used internally for consistent high-quality error reporting.
|
StringIndexOutOfBoundsException(String detailMessage)
Constructs a new
StringIndexOutOfBoundsException with the current
stack trace and the specified detail message. |
StringIndexOutOfBoundsException(String s,
int index)
Used internally for consistent high-quality error reporting.
|
StringIndexOutOfBoundsException(String s,
int offset,
int count)
Used internally for consistent high-quality error reporting.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public StringIndexOutOfBoundsException()
StringIndexOutOfBoundsException
that includes
the current stack trace.public StringIndexOutOfBoundsException(int index)
StringIndexOutOfBoundsException
with the current
stack trace and a detail message that is based on the specified invalid
index
.index
- the index which is out of bounds.public StringIndexOutOfBoundsException(String detailMessage)
StringIndexOutOfBoundsException
with the current
stack trace and the specified detail message.detailMessage
- the detail message for this exception.public StringIndexOutOfBoundsException(String s, int index)
public StringIndexOutOfBoundsException(int sourceLength, int index)
public StringIndexOutOfBoundsException(String s, int offset, int count)
public StringIndexOutOfBoundsException(int sourceLength, int offset, int count)