Creates a new SQL exception from an error detected by the Microsoft SQL Server 2005 JDBC Driver.

public static void makeFromDriverError(SQLServerConnection con,
                                       com.microsoft.sqlserver.jdbc.IOBuffer io,
                                       java.lang.String errText,
                                       java.lang.String state,
                                       boolean bStack)

Parameters

con

An SQLServerConnection object.

io

An IO buffer object.

errText

A string that contains the exception message.

state

An integer that contains the exception state.

bStack

True to generate the stack trace. Otherwise, false.

Exceptions

SQLServerException

See Also