public class IndexBoundsException extends IndexOutOfBoundsException
| Constructor and Description |
|---|
IndexBoundsException(long indexBound) |
IndexBoundsException(long indexBound,
long index) |
IndexBoundsException(long startIndex,
long indexBound,
long index) |
IndexBoundsException(long startIndex,
long indexBound,
long index,
String message) |
IndexBoundsException(long indexBound,
long index,
String message) |
IndexBoundsException(long indexBound,
String message) |
| Modifier and Type | Method and Description |
|---|---|
String |
assembleDetailString() |
protected String |
assembleExplicitMessageAddon() |
String |
assembleOutputString() |
String |
getMessage()
Returns an assembled output String due to bad method design in
Throwable. |
long |
index()
The index value used in the accessing attempt causing this exception.
|
long |
indexBound() |
String |
message()
Sadly, the Throwable implementation uses #getMessage() directly to print the exception.
|
static String |
messageBody() |
long |
startIndex() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IndexBoundsException(long indexBound)
public IndexBoundsException(long indexBound,
String message)
public IndexBoundsException(long indexBound,
long index)
public IndexBoundsException(long indexBound,
long index,
String message)
public IndexBoundsException(long startIndex,
long indexBound,
long index)
public IndexBoundsException(long startIndex,
long indexBound,
long index,
String message)
public static final String messageBody()
public final long startIndex()
public final long indexBound()
public final long index()
Note that this value might have overflown depending on the reporting logic.
public final String message()
public String assembleDetailString()
protected String assembleExplicitMessageAddon()
public String assembleOutputString()
public String getMessage()
Throwable.
Albeit being named "getMessage" by the JDK developers, this method should be seen
as "assembleOutputString" as this is its purpose.
For the actual message getter, see message().getMessage in class ThrowableCopyright © 2022 MicroStream Software. All rights reserved.