Thomas Aquinas,
Summa Theologiae — Question 50 - OF THE IMPEDIMENTS OF MARRIAGE, IN GENERAL…
“ Those impediments which do not annul a marriage already contracted sometimes hinder a marriage from being contracted, by rendering it not invalid but unlawful. And if it be contracted it is a true marriage although the contracting parties sin; just as by consecrating after breaking one's fast one would sin by disobeying the Church's ordinance, and yet it would be a valid sacrament because it is not essential to the sacrament that the consecrator be fasting. ”
