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

Constructs a SQLException object with a given reason, SQLState, vendorCode and cause.

Parameters:
reason    a description of the exception
sqlState    an XOPEN or SQL:2003 code identifying the exception
vendorCode    a database vendor-specific exception code
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