I am trying to determine how to deal in my plugin with exposing a java object method that could throw and exception. For the example below, I have added an object mapping for the exception class and the getErrno and getReason methods
in my java script I have
try {
method.invoke();
}
catch (e) {
errno = e.getErrno() ;
}
is the e that I catch going to be my java exception object or is it something else?
When I execute this (with invoke set to throw the exception) I get "TypeError: Cannot find function getErrno"