public SQLException (String reason, String sqlState, Throwable cause)

Constructs a SQLException object with a given reason, SQLState and cause. The vendor code is initialized to 0.

Parameters:
reason    a description of the exception.
sqlState    an XOPEN or SQL:2003 code identifying the exception
cause    the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Since:  1.6