A section of code that checks user input to ensure that it is valid.
Person 1: "My Sims 4 is crashing!" Person 2: "Just turn on the Error Trap function, it'll check your game code and make sure its valid" Person 1: "Thanks :)"