Treaties can be loosely compared to contracts: both are means of willing parties assuming obligations among themselves, and a party to either that fails to live up to their obligations can be held liable under international law.
Under what will a party to a treaty be held liable for failing to uphold their obligations?
international law