28 references to GetExceptionFromErrorCode
System.DirectoryServices (28)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (1)
1319throw ExceptionHelper.GetExceptionFromErrorCode(result, serverName);
System\DirectoryServices\ActiveDirectory\DirectoryServer.cs (3)
294throw ExceptionHelper.GetExceptionFromErrorCode(result, Name); 378throw ExceptionHelper.GetExceptionFromErrorCode(result, Name); 743throw ExceptionHelper.GetExceptionFromErrorCode(result, serverDownName);
System\DirectoryServices\ActiveDirectory\Domain.cs (1)
1268throw ExceptionHelper.GetExceptionFromErrorCode(error, serverName);
System\DirectoryServices\ActiveDirectory\DomainController.cs (2)
1164throw ExceptionHelper.GetExceptionFromErrorCode(result, Name); 1282throw ExceptionHelper.GetExceptionFromErrorCode(result, Name);
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
378return GetExceptionFromErrorCode(errorCode, null);
System\DirectoryServices\ActiveDirectory\Forest.cs (2)
899throw ExceptionHelper.GetExceptionFromErrorCode(result, _context.GetServerName()); 1097throw ExceptionHelper.GetExceptionFromErrorCode(error, serverName);
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (3)
259throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(error), serverName); 272throw ExceptionHelper.GetExceptionFromErrorCode((int)error, serverName); 359throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName);
System\DirectoryServices\ActiveDirectory\Locator.cs (1)
24throw ExceptionHelper.GetExceptionFromErrorCode(errorCode, domainName);
System\DirectoryServices\ActiveDirectory\TrustHelper.cs (12)
66throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 161throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 227throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result), serverName); 287throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 304throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 529throw ExceptionHelper.GetExceptionFromErrorCode((int)result, serverName); 599throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 654throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result), serverName); 728throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 795throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result), serverName); 845throw ExceptionHelper.GetExceptionFromErrorCode((int)win32Error, serverName); 1005throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result), serverName);
System\DirectoryServices\ActiveDirectory\Utils.cs (2)
704throw ExceptionHelper.GetExceptionFromErrorCode(result, domainControllerName ?? domainName); 1078throw ExceptionHelper.GetExceptionFromErrorCode((int)global::Interop.Advapi32.LsaNtStatusToWinError(result), serverName);