error-checking code

noun
UK /ˈerə ˈtʃekɪŋ kəʊd/
US /ˈerər ˈtʃekɪŋ koʊd/

Code that looks for mistakes and tells you when something is wrong.

The error-checking code caught a typo in my email address before I sent it.


OTHER MEANINGS

2. Instructions in a program that test whether data is correct before using it.

The form uses error-checking code to make sure you enter a real phone number.

3. Extra bits added to data so mistakes can be found when it is sent or stored.

The error-checking code in the file helped us notice the download was corrupted.

4. A routine that reports problems instead of crashing the program.

Good error-checking code shows a friendly message when the internet is down.