I have the following code and findbugs complains that "Exception is caught when Exception is not thrown
" under dodgy code. I do not understand how to solve this. getPMMLExportable
throws a MLPMMLExportException
.
public String exportAsPMML(MLModel model) throws MLPmmlExportException {
Externalizable extModel = model.getModel();
PMMLExportable pmmlExportableModel = null;
try {
pmmlExportableModel = ((PMMLModelContainer) extModel).getPMMLExportable();
} catch (MLPmmlExportException e) {
throw new MLPmmlExportException(e);
}
}