Java Throwable class methods
1. getMessage(): returns the message string about the exception. Syntax: public String getMessage() 2. getCause(): returns the cause of the exception. It will return null if the cause is unknown or non-existent. Syntax: public Throwable getCause() 3. toString(): returns a short description of the exception. Description of the exception = class name + “: “ + message. … Read more