~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: j.c.sackett
  • Date: 2011-11-04 18:12:08 UTC
  • mto: This revision was merged to the branch mainline in revision 14287.
  • Revision ID: jonathan.sackett@canonical.com-20111104181208-dxvn0shqkmyl4xwq
Made changes per lifeless's review.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
__all__ = [
8
8
    'InvalidBugTargetType',
9
9
    'InvalidDuplicateValue',
 
10
    'SubscriptionPrivacyViolation',
10
11
]
11
12
 
12
13
import httplib
24
25
@error_status(httplib.EXPECTATION_FAILED)
25
26
class InvalidDuplicateValue(LaunchpadValidationError):
26
27
    """A bug cannot be set as the duplicate of another."""
 
28
 
 
29
@error_status(httplib.BAD_REQUEST)
 
30
class SubscriptionPrivacyViolation(Exception):
 
31
    """The subscription would violate privacy policies."""