๐Ÿ’ปap computer science a review

Exception

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

An exception is an event or condition that interrupts the normal flow of program execution. It occurs when something unexpected or erroneous happens, and it can be caught and handled in code to prevent the program from crashing.

"Exception" also found in: