Developer Resources

DbError

Overview

A DbError object describes a database error condition, including the error code and message.

Methods

DbError.getCode
Returns the numeric code of the database error
DbError.getMessage
Returns the a string describing the database error

DbError.getCode

function DbError.getCode() : Number

Returns

A number indicating the database error which occurred

Description

Returns the numeric code which represents the database error

DbError.getMessage

function DbError.getMessage() : String

Returns

A string describing the database error

Description

Returns the a string describing the database error. This string is implementation-dependant, meaning it can vary from driver to driver.