1725. The seller of an immovable is warrantor towards the buyer for any violation of restrictions of public law affecting the property which are exceptions to the ordinary law of ownership.
The seller is not warrantor towards the buyer where he has given notice of these restrictions to the buyer at the time of the sale, where a prudent and diligent buyer could have discovered them by reason of the nature, location and use of the premises or where such restrictions have been registered in the registry office.