public abstract class InteropException extends Exception
interop messages.
This super class is used to catch any kind of these exceptions.| Modifier and Type | Method and Description |
|---|---|
RuntimeException |
raise()
Re-throw an
InteropException as a RuntimeException, which allows throwing it
without an explicit throws declaration. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final RuntimeException raise()
InteropException as a RuntimeException, which allows throwing it
without an explicit throws declaration.
The method returns RuntimeException so it can be used as
try {
ForeignAccess.sendRead(readNode, receiver, identifier);
} catch (InteropException ex) {
throw ex.raise();
}
but the method never
returns. It throws this exception internally rather than returning any value.