成人快手

Simple error handling techniques - CCEAErrors

In some ways, computer languages are no different to our own. They have strict rules programmers must follow in order to make their programs understood. Mistakes throw up errors, which must be fixed.

Part of Digital Technology (CCEA)Digital development concepts (programming)

Errors

When writing computer programs, there are a variety of errors we can encounter.

Errors can exist within the program itself 鈥 called or .

A syntax error is a mistake in the structure of the programming statements (the instructions written by the programmer do not meet the rules of the language). A logic error is when the program executes but produces a result that was not what the programmer intended.

Errors can also occur when the program is executed or run 鈥 these are known as run time errors.

To help reduce errors from data input, we use data techniques and error trapping methods.

An example of a validation error being returned