Skip to content

Commit

Permalink
Give message from CDKExcpeption regarding SMILES
Browse files Browse the repository at this point in the history
It contains valuable hints for why the SMILES String is not correct which now are delivered to the user through the text in the BioclipseException.
  • Loading branch information
jonalv committed Jun 14, 2012
1 parent bf1891c commit 04f5e59
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -982,7 +982,7 @@ public ICDKMolecule fromSMILES(String smilesDescription)
return new CDKMolecule(mol);
}
catch (InvalidSmilesException e) {
throw new BioclipseException("SMILES string is invalid", e);
throw new BioclipseException("SMILES string is invalid. Error message said: " + e.getMessage(), e);
}
}

Expand Down

0 comments on commit 04f5e59

Please sign in to comment.