summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index ede512a97..0ff485f9b 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1115,3 +1115,8 @@ class InstanceRecreateNotSupported(Invalid):
class ServiceGroupUnavailable(NovaException):
message = _("The service from servicegroup driver %(driver) is "
"temporarily unavailable.")
+
+
+class DBNotAllowed(NovaException):
+ message = _('%(binary)s attempted direct database access which is '
+ 'not allowed by policy')