Tele is right on this. So I'll just add the dogmatic decrees.
I prefer the denzinger translation over the one I like to cut and paste so I'll type it out. Any spelling errors are my own.
Council of Trent Session 24
Canon 4: If anyone says that the bond of matrimony can be dissolved because of heresy, or grievous cohabitation, or voluntary absence from the spouse: Let him be anathema.
Canon 7: If anyone says that the Church errs, inasmuch as she has taught and still teaches that in accordance with evanglical and apostolic doctrine [Matt. 10: 1 Cor. 7] the bond of matrimony cannot be dissolved because of adultery of one of the married persons, and that both, or even the innocent one, who has given no occasion for adultery, cannot during the lifetime of the other contract another marriage, and that he, who after the dismissal of the adulteress shall marry another, is guilty of adultery, and that she also, who after the dismissal of the adulterer shall marry another: Let him be anathema.