Under the family code; when a wife was pregnant by another man. The family code distinguished as a serious fraud. Because the wife breaking the essence of marriage. Where the most important objects of marriage is procreation of children, and "a husband has the right to require that his wife shall not bear to his bed aliens to his blood and lineage"
But when the wife is already pregnant at the time...