Handling Errors

Any method or property of any object that composes the GIS kernel can be completed with an error. Besides the standard mechanism of error handling in COM, the GDBEngine::GDBError event is triggered when a GIS kernel error occurs. The event has the following arguments: error code of GIS kernel, error code of DBMS and error code of OS. An error code of GIS kernel is the primary one. A GIS kernel error can be caused by a low-level error of DBMS or OS. A DBMS error can be caused by an OS error as well. The dependence of GIS kernel errors on DBMS and OS errors is given in the table "Error codes of GIS kernel". The dependence of DBMS errors on OS errors is given in the table "Error codes of DBMS". To get a short description of GIS kernel error the GDBEngine::GDBErrorDescription method should be used. To get a short description of DBMS error the GDBEngine::DBMSErrorDescription method should be used.