Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Exception

Exception

The representation of an unexpected situation that affects control flow.

Related concepts:  ObjectControl FlowReturn

Closest Wikipedia entry:  Exception handling

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Exception is based on principled authoritative sources such as:

Types and Programming Languages - Section 14

Misconceptions about Exception
9 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
AnyClassException
Any class can be an exception class
Misconception
CatchAlwaysExecutes
Catch blocks always get executed
Misconception
CatchProvidesOptions
Only the part of a catch block necessary to fix the cause of an exception is executed
Misconception
ExceptionRoot
Exception is the top-most exception class
Misconception
NullPointerExceptionCompileTime
NullPointerExceptions are detected at compile time
Misconception
RuntimeExceptionChecked
RuntimeExceptions are checked exceptions
Misconception
TryCatchMandatory
When a piece of code can throw an exception, it must be surrounded with a try/catch block
Misconception
TryFinishes
Exceptions get thrown at the end of the try block

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors