§1. The internal consent of the mind is presumed to conform to the words and signs used in celebrating the marriage.
§2. If, however, either or both of the parties by a positive act of the will exclude marriage itself, some essential element of marriage, or some essential property of marriage, the party contracts invalidly.
Source: Code of Canon Law (Vatican.va)