Indemnity is a contract by which one engages to save another from a legal consequence of the conduct of one of the parties, or of some other person.
(Enacted 1872.)