public final class UnsupportedMessageException extends InteropException
TruffleObject does not support a Message.| Modifier and Type | Method and Description |
|---|---|
Message |
getUnsupportedMessage()
Returns the
Message that was not supported by the TruffleObject. |
static RuntimeException |
raise(Message message)
Raises an
UnsupportedMessageException, hidden as a RuntimeException, which
allows throwing it without an explicit throws declaration. |
raiseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic Message getUnsupportedMessage()
Message that was not supported by the TruffleObject.public static RuntimeException raise(Message message)
UnsupportedMessageException, hidden as a RuntimeException, which
allows throwing it without an explicit throws declaration. The ForeignAccess methods
(e.g. ForeignAccess.sendRead ) catch the exceptions and re-throw them as
checked exceptions.message - message that is not supported