The CQGError interface encapsulates the possible errors which may arise in CQG API.

When an error occurs during CQG API work, the user will be notified about it via DataError event.
The last occurred error will be available from CQGEnvironment.LastError.
For a list of error codes defined in CQG API see the Error Codes table.
See the usage of CQGError object in the OnQueryProgress event's example section.