DbPool.majorErrorCode() (Method)

Returns an error code value for an error that happened in the database or the interface to it.

Availability:

JavaScript - 1.2
Netscape Enterprise Server - 3.0
Property/method value type:String primitive
JavaScript syntax:NESmyDbPool.majorErrorCode()

For a status code value of 5 when using the Oracle database, this yields a return code from the Oracle Call-level interface.

For a status code value of 5 when using SQL server through the ODBC database interface, this yields the SQL server message number.

For a status code value of 7 when using the Informix database, this yields the Informix error code.

For a status code value of 7 when using the Sybase database, this yields the DB-Library error number.

See also:Connection.majorErrorCode(), database.majorErrorCode(), Error handling