~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-16 11:08:11 UTC
  • mfrom: (6521 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6522.
  • Revision ID: jelmer@samba.org-20120416110811-0y996ihqy9o2bb1t
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
710
710
    _fmt = 'Already a branch: "%(path)s".'
711
711
 
712
712
 
 
713
class InvalidBranchName(PathError):
 
714
 
 
715
    _fmt = "Invalid branch name: %(name)s"
 
716
 
 
717
    def __init__(self, name):
 
718
        BzrError.__init__(self)
 
719
        self.name = name
 
720
 
 
721
 
713
722
class ParentBranchExists(AlreadyBranchError):
714
723
 
715
724
    _fmt = 'Parent branch already exists: "%(path)s".'
2768
2777
    _fmt = "No mail-to address (--mail-to) or output (-o) specified."
2769
2778
 
2770
2779
 
2771
 
class UnknownMailClient(BzrError):
2772
 
 
2773
 
    _fmt = "Unknown mail client: %(mail_client)s"
2774
 
 
2775
 
    def __init__(self, mail_client):
2776
 
        BzrError.__init__(self, mail_client=mail_client)
2777
 
 
2778
 
 
2779
2780
class MailClientNotFound(BzrError):
2780
2781
 
2781
2782
    _fmt = "Unable to find mail client with the following names:"\