8 references to GetException
System.Net.Security (8)
System\Net\Security\SslStream.IO.cs (4)
347throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 397throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 400if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 408throw new AuthenticationException(SR.net_auth_SSPI, token.GetException());
System\Net\Security\SslStream.Protocol.cs (2)
794NetEventSource.Error(this, $"Authentication failed. Status: {wedged.Status}, Exception message: {wedged.GetException()!.Message}"); 804NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}");
System\Net\Security\TlsSession.cs (2)
1058Exception authExc = new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 1430throw new AuthenticationException(SR.net_auth_SSPI, token.GetException());