diff options
author | Mike Scherbakov <mihgen@gmail.com> | 2011-05-26 00:51:14 +0400 |
---|---|---|
committer | Mike Scherbakov <mihgen@gmail.com> | 2011-05-26 00:51:14 +0400 |
commit | fe77c55b7643bd9bd3bd988f7f759dde8af09cae (patch) | |
tree | 6d3a18d28fe54d2d1808ca8496f0ed04b32706cb /nova/exception.py | |
parent | 818c2424a0547882fe6bdfe6613ee66a248d91db (diff) | |
parent | ec0e674ce1a8539143e9b99deb8cc62b9d42d6b2 (diff) | |
download | nova-fe77c55b7643bd9bd3bd988f7f759dde8af09cae.tar.gz nova-fe77c55b7643bd9bd3bd988f7f759dde8af09cae.tar.xz nova-fe77c55b7643bd9bd3bd988f7f759dde8af09cae.zip |
Merged with trunk
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 9905fb19b..56c20d111 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -244,6 +244,10 @@ class InstanceUnacceptable(Invalid): message = _("Instance %(instance_id)s is unacceptable") + ": %(reason)s" +class InvalidEc2Id(Invalid): + message = _("Ec2 id %(ec2_id)s is unacceptable.") + + class NotFound(NovaException): message = _("Resource could not be found.") @@ -251,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.") |