[Zope-CVS] CVS: Packages/pypes/pypes - exceptions.py:1.8
Casey Duncan
casey at zope.com
Thu Jul 1 23:12:26 EDT 2004
Update of /cvs-repository/Packages/pypes/pypes
In directory cvs.zope.org:/tmp/cvs-serv16337
Modified Files:
exceptions.py
Log Message:
Shorten query exception names
=== Packages/pypes/pypes/exceptions.py 1.7 => 1.8 ===
--- Packages/pypes/pypes/exceptions.py:1.7 Wed May 12 01:10:36 2004
+++ Packages/pypes/pypes/exceptions.py Thu Jul 1 23:12:25 2004
@@ -22,7 +22,7 @@
"""Cannot process requested operation.
An internal error used to signal to a caller to use an alernate method to
- perform a given operation. Not general propagated to applications
+ perform a given operation. Not generally propagated to applications
"""
class PypesLookupError(PypesError, LookupError):
@@ -54,8 +54,14 @@
class GraphCycleError(PypesError):
"""Cycle detected during operation for acyclic graph"""
-class PypesQueryError(PypesError):
+class QueryError(PypesError):
"""General error performing query"""
-class PypesQueryInputError(PypesQueryError):
+class QueryInputError(QueryError):
"""Invalid input to pypes query"""
+
+class NoResultsError(QueryError):
+ """No results found for query, expected one"""
+
+class MultipleResultsError(QueryError):
+ """Multiple results found for query, expected one"""
More information about the Zope-CVS
mailing list