database.majorErrorMessage() (Method)

Returns the error message text for an error that may have happened in the database or the interface to it.

Availability:

JavaScript - 1.1
Netscape Enterprise Server - 2.0
Property/method value type:String primitive
JavaScript syntax:NESdatabase.majorErrorMessage()

For a status code value of 5 when using the Oracle database, this yields a text string describing the server error.

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

For a status code value of 7 when using the Informix database, this yields the text string from the vendor error library.

For a status code value of 7 when using the Sybase database, this yields a text string from the DB-Library.

See also:Connection.majorErrorMessage(), DbPool.majorErrorMessage(), Error handling, Status code