addNormalExit(node, CfgOptionalThrowNode.NO_THROW);
for (JClassType exceptionType : x.getTarget().getThrownExceptions()) {
addExit(Exit.createThrow(node, exceptionType, null));
}
JDeclaredType runtimeExceptionType =
program.getFromTypeMap("java.lang.RuntimeException");
if (runtimeExceptionType != null) {
addExit(Exit.createThrow(node, runtimeExceptionType,
CfgOptionalThrowNode.RUNTIME_EXCEPTION));
}
JDeclaredType errorExceptionType =
program.getFromTypeMap("java.lang.Error");
if (errorExceptionType != null) {
addExit(Exit.createThrow(node, errorExceptionType,
CfgOptionalThrowNode.ERROR));
}