共用方式為


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)

參數

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.

例外狀況

SQLServerException

另請參閱

參考

SQLServerException Class

概念

SQLServerException Methods
SQLServerException Members