~salvatore-orlando/neutron/bug834012

« back to all changes in this revision

Viewing changes to quantum/common/exceptions.py

  • Committer: Dan Wendlandt
  • Date: 2011-08-30 01:59:14 UTC
  • Revision ID: dan@nicira.com-20110830015914-t1myf4c8ifufhweb
lp835216 client lib was not passing in kwargs when creating exceptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                "already plugged into port %(att_port_id)s")
112
112
 
113
113
 
 
114
# NOTE: on the client side, we often do not know all of the information
 
115
# that is known on the server, thus, we create separate exception for
 
116
# those scenarios
 
117
class PortInUseClient(QuantumException):
 
118
    message = _("Unable to complete operation on port %(port_id)s " \
 
119
                "for network %(net_id)s. An attachment " \
 
120
                "is plugged into the logical port.")
 
121
 
 
122
 
 
123
class AlreadyAttachedClient(QuantumException):
 
124
    message = _("Unable to plug the attachment %(att_id)s into port " \
 
125
                "%(port_id)s for network %(net_id)s. The attachment is " \
 
126
                "already plugged into another port.")
 
127
 
 
128
 
114
129
class Duplicate(Error):
115
130
    pass
116
131