summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-03 22:29:01 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-03 22:29:01 +0000
commit296d59d27a33bedff00e126439730558b4cc93d3 (patch)
tree99bb5edda1cabc151cb437e2bb1e721d042ac6da /ipalib/errors.py
parent004e989dc493a703b0f85be164409443416bf894 (diff)
downloadfreeipa-296d59d27a33bedff00e126439730558b4cc93d3.tar.gz
freeipa-296d59d27a33bedff00e126439730558b4cc93d3.tar.xz
freeipa-296d59d27a33bedff00e126439730558b4cc93d3.zip
247: Added unit tests for errors.RequirementError
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 9f40ddae1..fc1b2c499 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -19,6 +19,8 @@
"""
All custom errors raised by `ipalib` package.
+
+Also includes a few utility functions for raising exceptions.
"""
TYPE_FORMAT = '%s: need a %r; got %r'
@@ -155,16 +157,13 @@ class RequirementError(ValidationError):
Raised when a required option was not provided.
"""
def __init__(self, name):
- ValidationError.__init__(self, name, None,
- 'missing required value'
- )
+ ValidationError.__init__(self, name, None, 'Required')
class SetError(IPAError):
msg = 'setting %r, but NameSpace does not allow attribute setting'
-
class RegistrationError(IPAError):
"""
Base class for errors that occur during plugin registration.