Class SQLServerWarning

  • All Implemented Interfaces:
    Serializable, Iterable<Throwable>

    public class SQLServerWarning
    extends SQLWarning
    Holds information about SQL Server messages that is considered as Informational Messages (normally if SQL Server Severity is at 10)

    Instead of just holding the SQL Server message (like a normal SQLWarning, it also holds all the SQL Servers extended information, like: ErrorSeverity, ServerName, ProcName etc

    This enables client to print out extra information about the message.
    Like: In what procedure was the message produced.

    See Also:
    Serialized Form
    • Constructor Detail

      • SQLServerWarning

        public SQLServerWarning​(SQLServerError sqlServerError)
    • Method Detail

      • 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