August 1999
Intermediate to advanced
1488 pages
72h 53m
English
connection.minorErrorCode()
The minorErrorMessage() method of the Connection object contains the secondary ODBC or database numeric error code that is returned if an error occurs.
Listing 8.19 shows how you would create a pool of connections, pull a connection from it, and test for the connection. If the test fails, the minorErrorCode() is used when writing the secondary error to the page.
<SERVER> // Create a pool of connections var myPool = new DbPool("ORACLE", "mySID", "myApp", "appsPWD", "myTNS"); // Open a connection from the pool. Give error if connection could // not be made. var myConn ... |
Read now
Unlock full access