The guarantor may raise against the creditor all defences, personal or inherent in the debt, which belong to the debtor, subject to the provisions of the second paragraph of article 2293.
However, the guarantor may not rely on legal or judicial measures from which the debtor benefits as a consequence of his default, unless there is a special provision to the contrary.