Runtime Errors
Computer Science: KS3, topic 2.1.21
Runtime Errors
Runtime errors are the hardest of the three types of errors. Runtime errors are not always found during development. Software users may first find runtime errors.

Runtime errors
- Runtime errors are errors that happen while the program is running.
- Runtime errors cannot be found during translation.
- Runtime errors can only be detected while a program is running.
- The chance of having a runtime error can be reduced through testing.

Examples of runtime errors
- Bad inputs that throw an unhandled exception.
- Receiving unexpected or corrupted data.
- Running out of memory.
Test yourself on Runtime Errors
Why can runtime errors cause a lot of problems?
Pick the true statement about runtime errors.
A company tests its program fully before release. A customer still finds a runtime error. Why might this happen?
A mistake is found while a program is being translated. Another mistake is only found while the program is running. Which mistake is usually harder for a programmer to deal with?