Thomas Aquinas,
Summa Theologiae — Question 51 - OF THE IMPEDIMENT OR ERROR…
“ Error about a person's rank, as such, does not void a marriage, for the same reason as neither does error about a personal quality. If, however, the error about a person's rank or position amounts to an error about the person, it is an impediment to matrimony. Hence, if the woman consent directly to this particular person, her error about his rank does not void the marriage; but if she intend directly to consent to marry the king's son, whoever he may be, then, if another man than the king's son be brought to her, there is error about the person, and the marriage will be void. ”
