~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/exception.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-01-20 11:54:15 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: package-import@ubuntu.com-20120120115415-h2ujma9o536o1ut6
Tags: upstream-2012.1~e3~20120120.12170
ImportĀ upstreamĀ versionĀ 2012.1~e3~20120120.12170

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
 
205
205
 
206
206
class PolicyNotAuthorized(NotAuthorized):
207
 
    message = _("Policy Doesn't allow %(action)s to be performed.")
 
207
    message = _("Policy doesn't allow %(action)s to be performed.")
208
208
 
209
209
 
210
210
class Invalid(NovaException):
557
557
 
558
558
 
559
559
class FloatingIpDNSExists(Invalid):
560
 
    message = _("The DNS entry %(name)s already exists in zone %(zone)s.")
 
560
    message = _("The DNS entry %(name)s already exists in domain %(domain)s.")
561
561
 
562
562
 
563
563
class FloatingIpNotFoundForAddress(FloatingIpNotFound):
679
679
                "in pool %(pool_id)s could not be found.")
680
680
 
681
681
 
 
682
class ConsoleTypeInvalid(Invalid):
 
683
    message = _("Invalid console type %(console_type)s ")
 
684
 
 
685
 
682
686
class NoInstanceTypesFound(NotFound):
683
687
    message = _("Zero instance types found.")
684
688
 
884
888
class QuotaError(ApiError):
885
889
    """Quota Exceeded."""
886
890
    pass
 
891
 
 
892
 
 
893
class AggregateNotFound(NotFound):
 
894
    message = _("Aggregate %(aggregate_id)s could not be found.")
 
895
 
 
896
 
 
897
class AggregateNameExists(Duplicate):
 
898
    message = _("Aggregate %(aggregate_name)s already exists.")
 
899
 
 
900
 
 
901
class AggregateHostNotFound(NotFound):
 
902
    message = _("Aggregate %(aggregate_id)s has no host %(host)s.")
 
903
 
 
904
 
 
905
class AggregateMetadataNotFound(NotFound):
 
906
    message = _("Aggregate %(aggregate_id)s has no metadata with "
 
907
                "key %(metadata_key)s.")
 
908
 
 
909
 
 
910
class AggregateHostConflict(Duplicate):
 
911
    message = _("Host %(host)s already member of another aggregate.")
 
912
 
 
913
 
 
914
class AggregateHostExists(Duplicate):
 
915
    message = _("Aggregate %(aggregate_id)s already has host %(host)s.")