]> git.ipfire.org Git - oddments/cappie.git/blobdiff - cappie/errors.py
Splitted into daemon and python module.
[oddments/cappie.git] / cappie / errors.py
diff --git a/cappie/errors.py b/cappie/errors.py
new file mode 100644 (file)
index 0000000..ec9e481
--- /dev/null
@@ -0,0 +1,38 @@
+#!/usr/bin/python
+###############################################################################
+#                                                                             #
+# Cappie                                                                      #
+# Copyright (C) 2010 Michael Tremer                                           #
+#                                                                             #
+# 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 DecodeError(Exception):
+       pass
+
+class EventException(Exception):
+       pass
+
+class EventTimeout(EventException):
+       pass
+
+class InterfaceError(Exception):
+       pass
+
+class PacketTypeError(Exception):
+       pass
+
+class QueueFullError(Exception):
+       pass