DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ControlDG Kernel Control
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IError_DG Go to ActiveX docs Search Documentation


IError_DG Interface

The interface returns string describing the last error and manages access to array of errors happened in the latest call to a DG Kernel method. The array is cleared on the start of most methods of any DG Kernel interface. Note that a single call can generate several errors form different parts of DG Kernel implementation. Use GetCount method to obtain size of the error array.

Note that not all methods report errors via the error array, so this functionality can not replace exception and error return handling. This functionality mostly used when there is clear explanation for a problem or hint to avoid it.

IError_DG can be queried from IModel_DG interface via: DGKC > GetModel() > IModel_DG > IError_DG

See also Interface List


Properties

int Count { get; }

Methods

GetError
GetErrorEx

string GetError()

Returns the last error.


string GetErrorEx(int errorNo)

errorNo - [in]  0-based index of the error to retrieve. 0 is the latest error