public final class ArityException extends InteropException
| Modifier and Type | Method and Description |
|---|---|
static ArityException |
create(int expectedArity,
int actualArity)
Creates an
ArityException to indicate that the wrong number of arguments were
provided. |
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.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic String getMessage()
getMessage in class Throwablepublic int getExpectedArity()
public int getActualArity()
public static ArityException create(int expectedArity, int actualArity)
ArityException to indicate that the wrong number of arguments were
provided.expectedArity - the number of arguments expected by the foreign objectactualArity - the number of provided by the foreign access