An object that describes a BDE or server error.

Syntax

These objects are created automatically by dBASE Plus when a DbException occurs.

Properties

The following table lists the properties of the DbError class. (No events or methods are associated with this class.) For details on each property, click on the property below.

Property

Default

Description

baseClassName

DBERROR

Identifies the object as an instance of the DbError class

className

(DBERROR)

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

code

 

BDE error number

context

 

Field name, table name, and so on, that caused error

message

Empty string

Text to describe the error

nativeCode

 

Server error code

Description

When an error using a data object occurs, a DbException is generated. Its errors property points to an array of DbError objects.

Each DbError object describes a BDE or SQL server error. If nativeCode is zero, the error is a BDE error. If nativeCode is non-zero, the error is a server error. The message property describes the error.