makeFromDriverError Method (SQLServerException)

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 int that contains the exception state.

bStack

true to generate the stack trace. Otherwise, false.

Exceptions

SQLServerException

See Also

Reference

SQLServerException Class

Concepts

SQLServerException Methods
SQLServerException Members