_exceptions.py
changeset 9347 bd841d6ae723
parent 9175 a7412e884d7b
child 9375 8e88576787c3
--- a/_exceptions.py	Tue Dec 10 12:36:50 2013 +0100
+++ b/_exceptions.py	Wed Dec 11 17:52:54 2013 +0100
@@ -134,6 +134,15 @@
     a non final entity
     """
 
+class MultipleResultsError(CubicWebRuntimeError):
+    """raised when ResultSet.one() is called on a resultset with multiple rows
+    of multiple columns.
+    """
+
+class NoResultError(CubicWebRuntimeError):
+    """raised when no result is found but at least one is expected.
+    """
+
 class UndoTransactionException(QueryError):
     """Raised when undoing a transaction could not be performed completely.