1. Any damages caused to ward off a danger that in the given circumstances could not be warded off by other means, provided that the damage inflicted is less significant than the damage avoided, shall be compensated by the one who inflicted the damage (extreme necessity).
2. In view of the factual circumstances under which damages have been inflicted, the liability to pay damages may be imposed on a third party in whose interests the one who inflicted the damages acted, or both the third party and the one who inflicted the damages be released from liability in whole or in part.