]>
git.ipfire.org Git - oddments/ddns.git/blob - src/ddns/errors.py
2 ###############################################################################
4 # ddns - A dynamic DNS client for IPFire #
5 # Copyright (C) 2012 IPFire development team #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
22 class DDNSError(Exception):
26 class DDNSNetworkError(DDNSError
):
30 class DDNSAbuseError(DDNSError
):
32 Thrown when the server reports
33 abuse for this account.
38 class DDNSAuthenticationError(DDNSError
):
40 Thrown when the server did not
41 accept the user credentials.
46 class DDNSBlockedError(DDNSError
):
48 Thrown when the dynamic update client
49 (specified by the user-agent) has been blocked
50 by a dynamic DNS provider.
55 class DDNSConfigurationError(DDNSError
):
57 Thrown when invalid or insufficient
58 data is provided by the configuration file.
63 class DDNSConnectionRefusedError(DDNSNetworkError
):
65 Thrown when a connection is refused.
70 class DDNSConnectionTimeoutError(DDNSNetworkError
):
72 Thrown when a connection to a server has timed out.
77 class DDNSHostNotFoundError(DDNSError
):
79 Thrown when a configuration entry could
85 class DDNSInternalServerError(DDNSError
):
87 Thrown when the remote server reported
88 an error on the provider site.
93 class DDNSNetworkUnreachableError(DDNSNetworkError
):
95 Thrown when a network is not reachable.
100 class DDNSRequestError(DDNSError
):
102 Thrown when a request could
103 not be properly performed.
108 class DDNSServiceUnavailableError(DDNSNetworkError
):
110 Equivalent to HTTP error code 503.
115 class DDNSUpdateError(DDNSError
):
117 Thrown when an update could not be