Given a java exception, the method returns its error message. The message includes the "message" itself plus the message of the "nextException".