Created exceptions for accepting in OSAPI, and handled them appropriately.

This commit is contained in:
Brian Lamar
2011-07-29 18:05:31 -04:00
parent 00eefe24cc
commit 59b19d796f

View File

@@ -692,3 +692,15 @@ class PasteConfigNotFound(NotFound):
class PasteAppNotFound(NotFound):
message = _("Could not load paste app '%(name)s' from %(path)s")
class CannotResizeToSameSize(NovaException):
message = _("When resizing, instances must change size!")
class CannotResizeToSmallerSize(NovaException):
message = _("Resizing to a smaller size is not supported.")
class FlavorDoesNotExist(NovaException):
message = _("Requested flavor '%(flavor_id)s' does not exist.")