diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-05-31 20:49:49 +0000 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-05-31 20:49:49 +0000 |
| commit | b4845fa52affacf76ae1668079f1cc7dfa1b4004 (patch) | |
| tree | 09c5e661f15551ef6fe16bfd719a9fdb8b86895d /nova/exception.py | |
| parent | 1b610e28e40c77271191349b6bfaa56c8f522c24 (diff) | |
| parent | 3812bb4c7e6fcee4c87c1225d9c725db08527018 (diff) | |
| download | nova-b4845fa52affacf76ae1668079f1cc7dfa1b4004.tar.gz nova-b4845fa52affacf76ae1668079f1cc7dfa1b4004.tar.xz nova-b4845fa52affacf76ae1668079f1cc7dfa1b4004.zip | |
Resolving conflict and finish test_images
Diffstat (limited to 'nova/exception.py')
| -rw-r--r-- | nova/exception.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 16c443c61..36ca51093 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -255,6 +255,10 @@ class NotFound(NovaException): super(NotFound, self).__init__(**kwargs) +class FlagNotSet(NotFound): + message = _("Required flag %(flag)s not set.") + + class InstanceNotFound(NotFound): message = _("Instance %(instance_id)s could not be found.") @@ -267,6 +271,14 @@ class VolumeNotFoundForInstance(VolumeNotFound): message = _("Volume not found for instance %(instance_id)s.") +class SnapshotNotFound(NotFound): + message = _("Snapshot %(snapshot_id)s could not be found.") + + +class VolumeIsBusy(Error): + message = _("deleting volume %(volume_name)s that has snapshot") + + class ExportDeviceNotFoundForVolume(NotFound): message = _("No export device found for volume %(volume_id)s.") |
