# Error

> A problem that stops code from working. Some stop it early, some mid-run.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Programming Error

## Think of it like

Think of it like a smoke alarm going off. It tells you something is wrong and roughly where to look.

## Definition

An error is a problem that stops code from doing what it should. Some errors stop the code before it runs, like a missing bracket. Others happen while it runs, like dividing by zero. Some never stop the code at all and just give a wrong answer. A good error message names the problem and the line where it happened.

## Example

Emma's program stops with ZeroDivisionError on line 2. The list of scores was empty, so it tried to divide by zero.

## Example code

```python
>>> 10 / 0
ZeroDivisionError: division by zero
```

The message names the kind of error and what went wrong.

## Why it matters

An error message is a clue, not a scolding. Reading it carefully is the fastest way to a fix.

## Common mistake

Skipping the message and guessing. The last line usually says exactly what broke.

## Three principles

- **Three kinds.** Before it runs, while it runs, or silent.
- **Read the message.** It names the problem and the line.
- **A clue, not a fail.** Every developer sees errors every day.

## Related terms

- [Syntax Error](https://learn.benibix.com/term/development/syntax-error)
- [Runtime Error](https://learn.benibix.com/term/development/runtime-error)
- [Logic Error](https://learn.benibix.com/term/development/logic-error)
- [Exception](https://learn.benibix.com/term/development/exception)
- [Bug](https://learn.benibix.com/term/development/bug)

## Taught in

- [Bugs and Error Types](https://learn.benibix.com/learn/development-concepts/bugs-and-error-types): Programming Basics, 15/18

---

Source: https://learn.benibix.com/term/development/error
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
