Defensive programming" is a form of defensive design intended to ensure the continuing function of a piece of softwareunder unforeseen circumstances. Defensive programming practices are often used where high availability, safety or security is needed"
Defensive programming - Wikipedia