Retrieves the message from the exception object.
Syntax
public String getMessage();
Parameters
None.
Return values
A String object that contains the message associated with the exception.
Exceptions