/** * Writes a molecule to the V3000 format. {@inheritDoc} * * @throws CDKException state exception (e.g undef bonds), unsupported format feature, * object not supported etc */ @Override public void write(IChemObject object) throws CDKException { try { if (IAtomContainer.class.isInstance(object)) writeMol((IAtomContainer) object); else throw new CDKException("Unsupported ChemObject " + object.getClass()); } catch (IOException ex) { throw new CDKException("Could not write V3000 format", ex); } }