]> git.ipfire.org Git - ddns.git/blame - src/ddns/errors.py
Add DNS Park as new provider.
[ddns.git] / src / ddns / errors.py
CommitLineData
f22ab085 1#!/usr/bin/python
3fdcb9d1
MT
2###############################################################################
3# #
4# ddns - A dynamic DNS client for IPFire #
5# Copyright (C) 2012 IPFire development team #
6# #
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. #
11# #
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. #
16# #
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/>. #
19# #
20###############################################################################
f22ab085
MT
21
22class DDNSError(Exception):
23 pass
24
25
26class DDNSAbuseError(DDNSError):
27 """
28 Thrown when the server reports
29 abuse for this account.
30 """
31 pass
32
33
34class DDNSAuthenticationError(DDNSError):
35 """
36 Thrown when the server did not
37 accept the user credentials.
38 """
39 pass
40
41
dcd7fc54
SS
42class DDNSBlockedError(DDNSError):
43 """
44 Thrown when the dynamic update client
45 (specified by the user-agent) has been blocked
46 by a dynamic DNS provider.
47 """
48 pass
49
50
2e2be9df
SS
51class DDNSConfigurationError(DDNSError):
52 """
53 Thrown when invalid or insufficient
54 data is provided by the configuration file.
55 """
56 pass
57
58
f22ab085
MT
59class DDNSInternalServerError(DDNSError):
60 """
61 Thrown when the remote server reported
62 an error on the provider site.
63 """
64 pass
65
66
67class DDNSRequestError(DDNSError):
68 """
69 Thrown when a request could
70 not be properly performed.
71 """
72 pass
73
74
75class DDNSUpdateError(DDNSError):
76 """
77 Thrown when an update could not be
78 properly performed.
79 """
80 pass