( )⚙ D9390 errors: introduce SecurityError and use it in a few places

This is an archive of the discontinued Mercurial Phabricator instance.

errors: introduce SecurityError and use it in a few places
ClosedPublic

Authored by martinvonz on Nov 24 2020, 1:05 PM.

Details

Summary

This is part of
https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan. There are
perhaps more errors in sslutil.py that should raise SecurityError;
I picked the most clear ones to start with.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage