__init__.py
changeset 9046 6fb3f0106301
parent 8748 f5027f8d2478
child 9402 2c48c091b6a2
--- a/__init__.py	Mon Jun 17 15:00:41 2013 +0200
+++ b/__init__.py	Mon Jun 24 14:55:26 2013 +0200
@@ -221,3 +221,15 @@
             errors[rname(*key)] = errors.pop(key)
     return ValidationError(getattr(entity, 'eid', entity), errors,
                            substitutions, i18nvalues)
+
+
+# exceptions ##################################################################
+
+class ProgrammingError(Exception): #DatabaseError):
+    """Exception raised for errors that are related to the database's operation
+    and not necessarily under the control of the programmer, e.g. an unexpected
+    disconnect occurs, the data source name is not found, a transaction could
+    not be processed, a memory allocation error occurred during processing,
+    etc.
+    """
+