5 references to GetException
System.Net.Security (5)
System\Net\Security\SslStream.IO.cs (4)
324throw new AuthenticationException(SR.net_auth_SSPI, token.GetException()); 374throw new AuthenticationException(SR.Format(SR.net_auth_tls_alert, _lastFrame.AlertDescription.ToString()), token.GetException()); 377if (token.Status.ErrorCode == SecurityStatusPalErrorCode.CertValidationFailed && token.GetException() is Exception certException) 385throw new AuthenticationException(SR.net_auth_SSPI, token.GetException());
System\Net\Security\SslStream.Protocol.cs (1)
795NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}");