public final class InvalidArrayIndexException extends InteropException
InvalidArrayIndexException.getInvalidIndex(),
Serialized Form| Modifier and Type | Method and Description |
|---|---|
static InvalidArrayIndexException |
create(long invalidIndex)
Creates an
InvalidArrayIndexException to indicate that an array index is invalid. |
static InvalidArrayIndexException |
create(long invalidIndex,
Throwable cause)
Creates an
InvalidArrayIndexException to indicate that an array index is invalid. |
long |
getInvalidIndex()
Returns the invalid index that was used.
|
String |
getMessage() |
fillInStackTrace, getCauseaddSuppressed, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getMessage()
getMessage in class Throwablepublic long getInvalidIndex()
public static InvalidArrayIndexException create(long invalidIndex)
InvalidArrayIndexException to indicate that an array index is invalid.invalidIndex - the index that could not be accessedpublic static InvalidArrayIndexException create(long invalidIndex, Throwable cause)
InvalidArrayIndexException to indicate that an array index is invalid.
In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause.
invalidIndex - the index that could not be accessedcause - the guest language exception that caused the error.