~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Merged db-devel into replication.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    'NameAlreadyTaken',
17
17
    'NoSuchDistroSeries',
18
18
    'NoSuchSourcePackageName',
 
19
    'OpenTeamLinkageError',
19
20
    'PPACreationError',
20
21
    'PrivatePersonLinkageError',
21
22
    'TeamMembershipTransitionError',
38
39
    """An attempt was made to link a private person/team to something."""
39
40
 
40
41
 
 
42
@error_status(httplib.FORBIDDEN)
 
43
class OpenTeamLinkageError(ValueError):
 
44
    """An attempt was made to link an open team to something."""
 
45
 
 
46
 
41
47
@error_status(httplib.CONFLICT)
42
48
class NameAlreadyTaken(Exception):
43
49
    """The name given for a person is already in use by other person."""