An error is something you have done which is considered to be incorrect or wrong, or which should not have been done. There are three types of error: syntax errors, logical errors and run-time errors. (Logical errors are also called semantic errors).