Add a standard exception for unverified SSL certificates.

Review Request #13256 — Created Sept. 5, 2023 and submitted

Information

Review Board
release-6.x

Reviewers

This introduces CertificateVerificationError, which represents an
unverified certificate, and VerificationFailureCode, which is an enum
of handled error codes. These will be used product-wide to represent
verification failures, replacing the now-deprecated
reviewboard.scmtools.errors.UnverifiedCertificateError.

The new error class provides default error messages for different error
codes, and allows for some custom formatting containing certificate
information.

Unit tests passed.

Made use of this in in-progress code.

Summary ID
Add a standard exception for unverified SSL certificates.
This introduces `CertificateVerificationError`, which represents an unverified certificate, and `VerificationFailureCode`, which is an enum of handled error codes. These will be used product-wide to represent verification failures, replacing the now-deprecated `reviewboard.scmtools.errors.UnverifiedCertificateError`. The new error class provides default error messages for different error codes, and allows for some custom formatting containing certificate information.
0819d07c8579b6dcf26a7a51883e0731abe8da45
Description From Last Updated

f-string is missing placeholders Column: 13 Error code: F541

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to release-6.x (2f71576)