summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/nova/exception.py b/nova/exception.py
index de8982488..9beadd2df 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -639,6 +639,15 @@ class NoFixedIpsDefined(NotFound):
message = _("Zero fixed ips could be found.")
+#TODO(bcwaldon): EOL this exception!
+class Duplicate(NovaException):
+ pass
+
+
+class FloatingIpExists(Duplicate):
+ message = _("Floating ip %(address)s already exists.")
+
+
class FloatingIpNotFound(NotFound):
message = _("Floating ip not found for id %(id)s.")
@@ -907,11 +916,6 @@ class RotationRequiredForBackup(NovaException):
message = _("Rotation param is required for backup image_type")
-#TODO(bcwaldon): EOL this exception!
-class Duplicate(NovaException):
- pass
-
-
class KeyPairExists(Duplicate):
message = _("Key pair %(key_name)s already exists.")