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 necessary part of a catch block executesExceptionRoot
Exception is the top-most exception classNullPointerExceptionCompileTime
NullPointerExceptions are detected at compile timeRuntimeExceptionChecked
RuntimeExceptions are checked exceptionsTryCatchMandatory
If code could throw an exception, you must surround that code with a try/catch blockTryFinishes
Exceptions get thrown at the end of the try block