public final class StopIterationException extends InteropException
This exception is thrown by the getIteratorNextElement
when the iterator has no more elements to return.
| Modifier and Type | Method and Description |
|---|---|
static StopIterationException |
create()
Creates an
StopIterationException to indicate that iteration was stopped. |
static StopIterationException |
create(Throwable cause)
Creates an
StopIterationException to indicate that iteration was stopped. |
String |
getMessage() |
fillInStackTrace, getCauseaddSuppressed, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getMessage()
getMessage in class Throwablepublic static StopIterationException create()
StopIterationException to indicate that iteration was stopped.public static StopIterationException create(Throwable cause)
StopIterationException to indicate that iteration was stopped.
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. The cause can then be used by the source language as new exception cause
if the InteropException is translated to a source language error.
cause - the guest language exception that caused the error.