Exception
The representation of an unexpected situation that affects control flow.
Related concepts: ObjectControl FlowReturn
Closest Wikipedia entry: Exception handling
Misconceptions about Exception9 documented Misconceptions
Check YourselfAnyClassException
Any class can be an exception classCatchAlwaysExecutes
Catch blocks always get executedCatchProvidesOptions
Only the part of a catch block necessary to fix the cause of an exception is executedExceptionRoot
Exception is the top-most exception classNullPointerExceptionCompileTime
NullPointerExceptions are detected at compile timeRuntimeExceptionChecked
RuntimeExceptions are checked exceptionsTryCatchMandatory
When a piece of code can throw an exception, it must be surrounded with a try/catch blockTryFinishes
Exceptions get thrown at the end of the try block