summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 658c8cbc..716decb2 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -796,6 +796,21 @@ class PromptFailed(InvocationError):
format = _('Could not get %(name)s interactively')
+class DeprecationError(InvocationError):
+ """
+ **3015** Raise when a command has been deprecated
+
+ For example:
+
+ >>> raise DeprecationError(name='hbacrule_add_sourcehost')
+ Traceback (most recent call last):
+ ...
+ DeprecationError: Command 'hbacrule_add_sourcehost' has been deprecated
+ """
+ errno = 3015
+ format = _("Command '%(name)s' has been deprecated")
+
+
##############################################################################
# 4000 - 4999: Execution errors