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 — Java
Any class can be an exception class
Misconception
CatchAlwaysExecutes — Java
Catch blocks always get executed
Misconception
CatchProvidesOptions — Java
Only the part of a catch block necessary to fix the cause of an exception is executed
Misconception
ExceptionRoot — Java
Exception is the top-most exception class
Misconception
NullPointerExceptionCompileTime — Java
NullPointerExceptions are detected at compile time
Misconception
RuntimeExceptionChecked — Java
RuntimeExceptions are checked exceptions
Misconception
TryCatchMandatory — Java
When a piece of code can throw an exception, it must be surrounded with a try/catch block
Misconception
TryFinishes — Java
Exceptions get thrown at the end of the try block
Misconception
AccessingInexistentPropertyError — JavaScript
Accessing a non existent property on an object produces an error

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors