~lifeless/bzrtools/trunk

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Robert Collins
  • Date: 2008-07-08 04:11:21 UTC
  • mfrom: (623.1.33 bzrtools)
  • Revision ID: robertc@robertcollins.net-20080708041121-lo0k7os2y03uclt2
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
import os
19
19
 
20
 
class NoPyBaz(Exception):
21
 
    def __init__(self):
22
 
        Exception.__init__(self, "PyBaz is not installed.")
23
20
try:
24
21
    from bzrlib.errors import BzrCommandError as CommandError
25
22
    from bzrlib.errors import BzrError
27
24
    class CommandError(Exception):
28
25
        pass
29
26
 
30
 
class PatchFailed(Exception):
31
 
    """Failed applying patch!"""
 
27
class PatchFailed(BzrError):
 
28
 
 
29
    _fmt = """Patch application failed"""
32
30
 
33
31
 
34
32
class PatchInvokeError(BzrError):