internal static void CheckLastError() { if (_errorContext != null) { CVException cve = new CVException(_errorContext); _errorContext = null; throw cve; } }