diff -r 4da3ef764395 -r bd841d6ae723 _exceptions.py --- 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.