[Zope3-checkins] CVS: Zope3/src/zope/schema - interfaces.py:1.43

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Apr 11 06:35:12 EDT 2004


Update of /cvs-repository/Zope3/src/zope/schema
In directory cvs.zope.org:/tmp/cvs-serv4916/src/zope/schema

Modified Files:
	interfaces.py 
Log Message:


Created a bunch of validation error classes.




=== Zope3/src/zope/schema/interfaces.py 1.42 => 1.43 ===
--- Zope3/src/zope/schema/interfaces.py:1.42	Fri Mar 19 07:00:08 2004
+++ Zope3/src/zope/schema/interfaces.py	Sun Apr 11 06:35:12 2004
@@ -27,6 +27,30 @@
 # to find these interfaces here.
 from zope.schema._bootstrapinterfaces import StopValidation, ValidationError
 from zope.schema._bootstrapinterfaces import IFromUnicode
+from zope.schema._bootstrapinterfaces import RequiredMissing, WrongType
+from zope.schema._bootstrapinterfaces import ConstraintNotSatisfied
+from zope.schema._bootstrapinterfaces import NotAContainer, NotAnIterator
+from zope.schema._bootstrapinterfaces import TooSmall, TooBig
+from zope.schema._bootstrapinterfaces import TooShort, TooLong
+from zope.schema._bootstrapinterfaces import InvalidValue
+
+class WrongContainedType(ValidationError):
+    __doc__ = _("""Wrong contained type""")
+
+class SchemaNotFullyImplemented(ValidationError):
+    __doc__ = _("""Schema not fully implemented""")
+
+class SchemaNotProvided(ValidationError):
+    __doc__ = _("""Schema not provided""")
+
+class InvalidURI(ValidationError):
+    __doc__ = _("""The specified URI is not valid.""")
+
+class InvalidId(ValidationError):
+    __doc__ = _("""The specified id is not valid.""")
+
+class InvalidDottedName(ValidationError):
+    __doc__ = _("""The specified dotted name is not valid.""")
 
 
 class IField(Interface):




More information about the Zope3-Checkins mailing list