diff options
| author | Brian Lamar <brian.lamar@rackspace.com> | 2011-08-02 11:17:42 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-08-02 11:17:42 +0000 |
| commit | efdd1bb019ac431d7d7a1923ff8580de1bb34217 (patch) | |
| tree | 44e2341e236c54eeeb05a6c033cdd2d2a81e83b6 /nova/exception.py | |
| parent | 483f8f9738b6e87642bfb0811b55ae6240f966cc (diff) | |
| parent | 25a831fd449dbbb7f0c2cdac404d7600a6da9f27 (diff) | |
Better error handling for resizing.
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 8c9b45a80..68e6ac937 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -692,3 +692,11 @@ 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.") |
