summaryrefslogtreecommitdiff
path: root/portato/db/exceptions.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-03-16 02:55:26 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-03-16 03:02:57 +0100
commit0ed08eba908d3b0ca8fcc282c387c03f95250147 (patch)
tree9c4f09749f59a181de77e6e580e76a099aa33e1e /portato/db/exceptions.py
parentdde6c85455fdcfd933c18c65a2c038c14093f525 (diff)
downloadportato-0ed08eba908d3b0ca8fcc282c387c03f95250147.tar.gz
portato-0ed08eba908d3b0ca8fcc282c387c03f95250147.tar.bz2
portato-0ed08eba908d3b0ca8fcc282c387c03f95250147.zip
Rewrote the database initialization to be a class instead of a function
Diffstat (limited to 'portato/db/exceptions.py')
-rw-r--r--portato/db/exceptions.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/portato/db/exceptions.py b/portato/db/exceptions.py
new file mode 100644
index 0000000..8a6e424
--- /dev/null
+++ b/portato/db/exceptions.py
@@ -0,0 +1,24 @@
+# -*- coding: utf-8 -*-
+#
+# File: portato/db/exceptions.py
+# This file is part of the Portato-Project, a graphical portage-frontend.
+#
+# Copyright (C) 2006-2010 René 'Necoro' Neumann
+# This is free software. You may redistribute copies of it under the terms of
+# the GNU General Public License version 2.
+# There is NO WARRANTY, to the extent permitted by law.
+#
+# Written by René 'Necoro' Neumann <necoro@necoro.net>
+
+class DatabaseError (Exception):
+ pass
+
+class UnknownDatabaseTypeError (DatabaseError):
+ pass
+
+class DatabaseInstantiationError (DatabaseError):
+ pass
+
+class UnsupportedSearchTypeError(DatabaseError):
+ pass
+