summaryrefslogtreecommitdiff
path: root/oslo_db/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/exception.py')
-rw-r--r--oslo_db/exception.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/oslo_db/exception.py b/oslo_db/exception.py
index f950f6a..111c4b5 100644
--- a/oslo_db/exception.py
+++ b/oslo_db/exception.py
@@ -155,6 +155,14 @@ class DBConnectionError(DBError):
pass
+class DBDataError(DBError):
+ """Raised for errors that are due to problems with the processed data.
+
+ E.g. division by zero, numeric value out of range, incorrect data type, etc
+
+ """
+
+
class InvalidSortKey(Exception):
"""A sort key destined for database query usage is invalid."""