makeFromDatabaseError Method (SQLServerException)

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

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

Parameters

con

A SQLServerConnection object.

io

An IO buffer object.

errText

A String that contains the exception message.

streamError

A StreamError object.

bStack

true to generate the stack trace. Otherwise, false.

Exceptions

SQLServerException

See Also

Reference

SQLServerException Class

Concepts

SQLServerException Methods
SQLServerException Members