Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Log exceptions thrown by the property calculator and not show dialog …
…for every error
  • Loading branch information
goglepox committed Aug 21, 2012
1 parent e3ecd69 commit b32e93d
Showing 1 changed file with 4 additions and 9 deletions.
Expand Up @@ -14,8 +14,6 @@

import net.bioclipse.cdk.domain.ICDKMolecule;
import net.bioclipse.cdk.ui.sdfeditor.business.IPropertyCalculator;
import net.bioclipse.core.business.BioclipseException;
import net.bioclipse.core.util.LogUtils;

import org.apache.commons.codec.binary.Base64;
import org.apache.log4j.Logger;
Expand All @@ -36,14 +34,11 @@ public BitSet calculate( ICDKMolecule molecule ) {
IAtomContainer ac = new NNAtomContainer(molecule.getAtomContainer());
BitSet fingerprint=fp.getFingerprint(ac);
return fingerprint;
} catch (Exception e) {
LogUtils.handleException( new BioclipseException(
} catch (Throwable e) {
Logger.getLogger( CDKFingerPrintPropertyCalculator.class ).warn(
"Could not create fingerprint: "
+ e.getMessage()),
Logger.getLogger( CDKFingerPrintPropertyCalculator.class ),
"net.bioclipse.cdk.ui.sdfeditor");
throw new RuntimeException( "Could not create fingerprint. "
+e.getMessage(),e);
+ e.getMessage());
return null;
}
}

Expand Down

0 comments on commit b32e93d

Please sign in to comment.