public final class ArityException extends InteropException
| Modifier and Type | Method and Description |
|---|---|
int |
getActualArity()
Returns the actual number of arguments provided by the foreign access.
|
int |
getExpectedArity()
Returns the number of arguments that the foreign object expects.
|
static RuntimeException |
raise(int expectedArity,
int actualArity)
Raises an
ArityException, 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 int getExpectedArity()
public int getActualArity()
public static RuntimeException raise(int expectedArity, int actualArity)
ArityException, 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.expectedArity - the number of arguments expected by the foreign objectactualArity - the number of provided by the foreign access