Extends the general java.lang. exception class to provide detail about errors in SQL statement execution. Any such errors raise an exception with an argument that is a SQLException class object. The getDiagnostics() method retrieves details of the error.