public final class UnsupportedTypeException extends InteropException
TruffleObject does not support the type of one ore more
arguments provided by a foreign access.| Modifier and Type | Method and Description |
|---|---|
Object[] |
getSuppliedValues()
Returns the arguments of the foreign object access that were not supported by the
TruffleObject. |
static RuntimeException |
raise(Exception cause,
Object[] suppliedValues)
Raises an
UnsupportedTypeException, hidden as a RuntimeException, which
allows throwing it without an explicit throws declaration. |
static RuntimeException |
raise(Object[] suppliedValues)
Raises an
UnsupportedTypeException, 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 Object[] getSuppliedValues()
TruffleObject.public static RuntimeException raise(Object[] suppliedValues)
UnsupportedTypeException, 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.suppliedValues - values that were not supportedpublic static RuntimeException raise(Exception cause, Object[] suppliedValues)
UnsupportedTypeException, 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.cause - cause of this exceptionsuppliedValues - values that were not supported