# Exception

*noun*

say it: **“ek-SEP-shun”** **/ɪkˈsɛpʃən/**

An object describing an error that stops the normal flow of the program until something catches it.

## What is **Exception** in C#?

**Exception** — An object describing a problem that interrupts normal program flow.

```csharp
class Reservation
{
    void Reserve(int seats)
    {
        if (seats < 1)
        {
            throw new ArgumentException("Seat count must be positive");
        }
    }
}
```

## In a sentence

- “Opening a missing file threw an **exception**, FileNotFoundException.”

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=3)

Updated: November 9, 2026

## In other subjects

- [Exception in Java](https://www.ask-codey.com/glossary/exception-java)
- [Exception in Python](https://www.ask-codey.com/glossary/exception)

Source: https://www.ask-codey.com/glossary/exception-c-sharp
