summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/errors2.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py
index 6d26ee575..c80edf023 100644
--- a/ipalib/errors2.py
+++ b/ipalib/errors2.py
@@ -710,6 +710,22 @@ class RealmMismatch(ExecutionError):
errno = 4005
format = _('The realm for the principal does not match the realm for this IPA server')
+class RequiresRoot(ExecutionError):
+ """
+ **4006** Raised when a command requires the unix super-user to run
+
+ For example:
+
+ >>> raise RequiresRoot
+ Traceback (most recent call last):
+ ...
+ RequiresRoot: This command requires root access
+
+ """
+
+ errno = 4006
+ format = _('This command requires root access')
+
class BuiltinError(ExecutionError):
"""
**4100** Base class for builtin execution errors (*4100 - 4199*).