]> git.ipfire.org Git - oddments/ddns.git/blobdiff - ddns/errors.py
Add class to raise configuration errors.
[oddments/ddns.git] / ddns / errors.py
index 93a55edcb0f6cda89b8106672dd38c869dc50d71..1803c98e197c8da92af6f9c6f9e9ae8ffc29080b 100644 (file)
@@ -1,4 +1,23 @@
 #!/usr/bin/python
 #!/usr/bin/python
+###############################################################################
+#                                                                             #
+# ddns - A dynamic DNS client for IPFire                                      #
+# Copyright (C) 2012 IPFire development team                                  #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
 
 class DDNSError(Exception):
        pass
 
 class DDNSError(Exception):
        pass
@@ -20,6 +39,14 @@ class DDNSAuthenticationError(DDNSError):
        pass
 
 
        pass
 
 
+class DDNSConfigurationError(DDNSError):
+       """
+               Thrown when invalid or insufficient
+               data is provided by the configuration file.
+       """
+       pass
+
+
 class DDNSInternalServerError(DDNSError):
        """
                Thrown when the remote server reported
 class DDNSInternalServerError(DDNSError):
        """
                Thrown when the remote server reported