Add key value storage in MolDSException.