generateStateCode Method (SQLServerException)

Generates the JDBC state code based on the error number that is returned from the database.

public static java.lang.String generateStateCode(SQLServerConnection con,
                                                 int errNum,
                                                 int databaseState)

Parameters

con

An SQLServerConnection object.

errNum

An int that contains the error number.

databaseState

An int contains the database state.

Return Value

A String that contains the state code.

See Also

Reference

SQLServerException Class

Concepts

SQLServerException Methods
SQLServerException Members