Class SQLServerException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.microsoft.sqlserver.jdbc.SQLServerException
All Implemented Interfaces:
Serializable, Iterable<Throwable>

public final class SQLServerException extends 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.
See Also:
  • 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:
      SQLServerError