8
Handling Exceptions
•Each exception object has a method named getMessage that can be used to retrieve the default error message for the exception.
•Example: ExceptionMessage.java is a file in your text on page 728
•
This is the same message that is displayed when the exception is not handled and the application halts.
ParseIntError.java