PPT Slide
the type of the exception
than in manipulating it as an object,
so “e” is just an object often thrown away.
The general structure of Java’s exception handling:
// here goes the code that attempts to perform the // intended action, but that could throw an exception
catch (ExceptionType1 e) {
// here goes the code to handle exception type 1
catch (ExceptionType2 e) {
// here goes the code to handle exception type 2
Exceptions: General Format