PySide6.QtNetwork.QSslError¶
- class QSslError¶
- The - QSslErrorclass provides an SSL error.- Details- QSslErrorprovides a simple API for managing errors during- QSslSocket‘s SSL handshake.- See also - Synopsis¶- Methods¶- def - __init__()
- def - certificate()
- def - error()
- def - errorString()
- def - __ne__()
- def - __eq__()
- def - swap()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - class SslError¶
- Describes all recognized errors that can occur during an SSL handshake. - Constant - Description - QSslError.SslError.NoError - QSslError.SslError.UnableToGetIssuerCertificate - QSslError.SslError.UnableToDecryptCertificateSignature - QSslError.SslError.UnableToDecodeIssuerPublicKey - QSslError.SslError.CertificateSignatureFailed - QSslError.SslError.CertificateNotYetValid - QSslError.SslError.CertificateExpired - QSslError.SslError.InvalidNotBeforeField - QSslError.SslError.InvalidNotAfterField - QSslError.SslError.SelfSignedCertificate - QSslError.SslError.SelfSignedCertificateInChain - QSslError.SslError.UnableToGetLocalIssuerCertificate - QSslError.SslError.UnableToVerifyFirstCertificate - QSslError.SslError.CertificateRevoked - QSslError.SslError.InvalidCaCertificate - QSslError.SslError.PathLengthExceeded - QSslError.SslError.InvalidPurpose - QSslError.SslError.CertificateUntrusted - QSslError.SslError.CertificateRejected - QSslError.SslError.SubjectIssuerMismatch - QSslError.SslError.AuthorityIssuerSerialNumberMismatch - QSslError.SslError.NoPeerCertificate - QSslError.SslError.HostNameMismatch - QSslError.SslError.UnspecifiedError - QSslError.SslError.NoSslSupport - QSslError.SslError.CertificateBlacklisted - QSslError.SslError.CertificateStatusUnknown - QSslError.SslError.OcspNoResponseFound - QSslError.SslError.OcspMalformedRequest - QSslError.SslError.OcspMalformedResponse - QSslError.SslError.OcspInternalError - QSslError.SslError.OcspTryLater - QSslError.SslError.OcspSigRequred - QSslError.SslError.OcspUnauthorized - QSslError.SslError.OcspResponseCannotBeTrusted - QSslError.SslError.OcspResponseCertIdUnknown - QSslError.SslError.OcspResponseExpired - QSslError.SslError.OcspStatusUnknown - See also 
 - __init__()¶
 - Constructs a - QSslErrorobject with no error and default certificate.- __init__(error)
- Parameters:
- error – - SslError
 
 - Constructs a - QSslErrorobject. The argument specifies the- errorthat occurred.- __init__(other)
- Parameters:
- other – - QSslError
 
 - Constructs an identical copy of - other.- __init__(error, certificate)
- Parameters:
- error – - SslError
- certificate – - QSslCertificate
 
 
 - Constructs a - QSslErrorobject. The two arguments specify the- errorthat occurred, and which- certificatethe error relates to.- See also - certificate()¶
- Return type:
 
 - Returns the certificate associated with this error, or a null certificate if the error does not relate to any certificate. - See also - Returns the type of the error. - See also - errorString()¶
- Return type:
- str 
 
 - Returns a short localized human-readable description of the error. - See also - Returns - trueif this error is not equal to- other; otherwise returns false.- Returns - trueif this error is equal to- other; otherwise returns- false.- Swaps this error instance with - other. This operation is very fast and never fails.