summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-03 18:32:49 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-03 18:32:49 +0000
commit085ea3f62f37539a279f7d4ade51208fcbe868b9 (patch)
tree18029cb9fd5360ea9a088585c1a37b6bda474297 /ipalib/errors.py
parentbaef0e6f49aaf75c3d71e3afd9cf2a2abcb07152 (diff)
downloadfreeipa-085ea3f62f37539a279f7d4ade51208fcbe868b9.tar.gz
freeipa-085ea3f62f37539a279f7d4ade51208fcbe868b9.tar.xz
freeipa-085ea3f62f37539a279f7d4ade51208fcbe868b9.zip
239: Added errors.ConversionError; started big clean up of how ValidationError is raised so it works well with multivalues
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index d68bac407..8ecccf2b2 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -119,6 +119,14 @@ class ValidationError(IPAError):
IPAError.__init__(self, name, value, error)
+class ConversionError(ValidationError):
+ def __init__(self, name, value, type_, position):
+ self.type = type_
+ self.position = position
+ ValidationError.__init__(self, name, value, type_.conversion_error)
+
+
+
class NormalizationError(ValidationError):
def __init__(self, name, value, type):
self.type = type