Skip to content
Snippets Groups Projects
Commit 5c09bea9 authored by Mick Jordan's avatar Mick Jordan
Browse files

allow R errors through package init

parent a7a947b2
Branches
No related tags found
No related merge requests found
......@@ -277,6 +277,9 @@ public class DLL {
initCritical.acquire();
try {
RFFIFactory.getRFFI().getCallRFFI().invokeVoidCall(symbolInfo.address, symbolInfo.symbol, new Object[]{dllInfo});
} catch (ReturnException ex) {
// An error call can, due to condition handling, throw this which we must propogate
throw ex;
} catch (Throwable ex) {
if (RContext.isInitialContextInitialized()) {
throw new DLLException(RError.Message.DLL_RINIT_ERROR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment