X-Git-Url: http://git.ipfire.org/?p=oddments%2Fddns.git;a=blobdiff_plain;f=src%2Fddns%2Ferrors.py;fp=src%2Fddns%2Ferrors.py;h=58a5ba9beb0e0342d51d21dc7e140c3cbc591483;hp=26bc18ec46d508c02bbd6836d3cce18495e79bd5;hb=a6094ef64a5bf29796b5d880427109826dfe1950;hpb=7074da5c8cf7dfa4c34f51122b66cc426e7f821f diff --git a/src/ddns/errors.py b/src/ddns/errors.py index 26bc18e..58a5ba9 100644 --- a/src/ddns/errors.py +++ b/src/ddns/errors.py @@ -64,6 +64,13 @@ class DDNSBlockedError(DDNSError): reason = N_("The server denies any updates from this client") +class DDNSCertificateError(DDNSError): + """ + Thrown when a server presented an invalid certificate. + """ + reason = N_("Invalid certificate") + + class DDNSConfigurationError(DDNSError): """ Thrown when invalid or insufficient @@ -139,6 +146,14 @@ class DDNSResolveError(DDNSNetworkError): reason = N_("Could not resolve DNS entry") +class DDNSSSLError(DDNSNetworkError): + """ + Raised when a SSL connection could not be + negotiated. + """ + reason = N_("SSL negotiation error") + + class DDNSServiceUnavailableError(DDNSNetworkError): """ Equivalent to HTTP error code 503.