~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Parth Malwankar
  • Date: 2010-06-30 12:03:30 UTC
  • mto: This revision was merged to the branch mainline in revision 5339.
  • Revision ID: parth.malwankar@gmail.com-20100630120330-uud7s38i8s08izh8
added InvalidPattern error.
This is raised by lazy_regex and Globster on bad regex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3155
3155
        "Please, set your name with the 'whoami' command.\n"
3156
3156
        'E.g. bzr whoami "Your Name <name@example.com>"')
3157
3157
 
 
3158
class InvalidPattern(BzrError):
 
3159
 
 
3160
    _fmt = ('Invalid pattern(s) found. %(message)s')
 
3161
 
 
3162
    def __init__(self, message):
 
3163
        self.message = message
3158
3164