public bool GetError(int index, out NativeMethods.WError error)
{
CheckContextInitialized();
// object can be inserted only when the context is stopped
if(_status != ContextStatus.Stopped) {
throw new Exception("Object can be inserted only when the context is stopped");
}
int result = NativeMethods.GetError(_contextId, index, out error);
return ValidResult(result);
}