SQLServerException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
sql. SQLException - com.
microsoft. sqlserver. jdbc. SQLServerException
- com.
- java.
- java.
- java.
public final class SQLServerException
extends java.sql.SQLException
Represents the exception thrown from any point in the driver that throws a java.sql.SQLException. SQLServerException handles both SQL 92 and XOPEN state codes. They are switchable via a user specified connection property. SQLServerExceptions are written to any open log files the user has specified.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
SQLServer |
getSQLServerError()
Returns SQLServer |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Methods inherited from java.sql.SQLException
Method Details
getSQLServerError
public SQLServerError getSQLServerError()
Returns SQLServerError object containing detailed info about exception as received from SQL Server. This API returns null if no server error has occurred.
Returns: