summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-20 19:39:46 +0000
committerGerrit Code Review <review@openstack.org>2012-07-20 19:39:46 +0000
commit1948137c9708608d9c39a643923c42b3419a7592 (patch)
treebd512439af78198e65efa8895b13724f8ae27cf9 /nova/exception.py
parent09d98f413c5a1a997088879227c24010bd67e253 (diff)
parent39146d2e2e36ad96e8cf8b4f4bc9c426f1b80efb (diff)
downloadnova-1948137c9708608d9c39a643923c42b3419a7592.tar.gz
nova-1948137c9708608d9c39a643923c42b3419a7592.tar.xz
nova-1948137c9708608d9c39a643923c42b3419a7592.zip
Merge "Ensure 413 response for security group over-quota"
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index c6f05e97e..b63406427 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -1040,6 +1040,10 @@ class KeypairLimitExceeded(QuotaError):
message = _("Maximum number of key pairs exceeded")
+class SecurityGroupLimitExceeded(QuotaError):
+ message = _("Maximum number of security groups or rules exceeded")
+
+
class AggregateError(NovaException):
message = _("Aggregate %(aggregate_id)s: action '%(action)s' "
"caused an error: %(reason)s.")