diff options
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r-- | ipalib/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py index d68bac40..8ecccf2b 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 |