summaryrefslogtreecommitdiffstats
path: root/ipalib/errors2.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r--ipalib/errors2.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py
index 81b1fb2ed..4c8acd5d8 100644
--- a/ipalib/errors2.py
+++ b/ipalib/errors2.py
@@ -481,9 +481,17 @@ class RequirementError(InvocationError):
class ConversionError(InvocationError):
"""
**3006** Raised when parameter value can't be converted to correct type.
+
+ For example:
+
+ >>> raise ConversionError(name='age', error='must be an integer')
+ Traceback (most recent call last):
+ ...
+ ConversionError: invalid 'age': must be an integer
"""
errno = 3006
+ format = _('invalid %(name)r: %(error)s')
class ValidationError(InvocationError):