~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/errors.py

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
__all__ = [
6
6
    'DistroSeriesDifferenceError',
7
7
    'NotADerivedSeriesError',
8
 
    'MultipleParentsForDerivedSeriesError',
9
8
    'CannotTransitionToCountryMirror',
10
9
    'CountryMirrorAlreadySet',
11
10
    'DeleteSubscriptionError',
124
123
    non-derived series - that is, a distroseries with a null Parent."""
125
124
 
126
125
 
127
 
class MultipleParentsForDerivedSeriesError(Exception):
128
 
    """A distro series difference must have one parent series set.
129
 
 
130
 
    This is raised when a DistroSeriesDifference is created, and we can't
131
 
    determine the parent series to use, since there is more than one. The
132
 
    parent series needs to be specified in this case."""
133
 
 
134
 
 
135
126
@error_status(httplib.BAD_REQUEST)
136
127
class TeamMembershipTransitionError(ValueError):
137
128
    """Indicates something has gone wrong with the transtiion.