/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Robert Collins
  • Date: 2007-06-22 05:05:22 UTC
  • mfrom: (2544 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2547.
  • Revision ID: robertc@robertcollins.net-20070622050522-bi07tvlincf1h19m
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    """
49
49
    Base class for errors raised by bzrlib.
50
50
 
51
 
    :cvar internal_error: if true (or absent) this was probably caused by a
52
 
    bzr bug and should be displayed with a traceback; if False this was
 
51
    :cvar internal_error: if True this was probably caused by a bzr bug and
 
52
    should be displayed with a traceback; if False (or absent) this was
53
53
    probably a user or environment error and they don't need the gory details.
54
54
    (That can be overridden by -Derror on the command line.)
55
55
 
845
845
    _fmt = "No changes to commit"
846
846
 
847
847
 
 
848
class CannotCommitSelectedFileMerge(BzrError):
 
849
 
 
850
    _fmt = 'Selected-file commit of merges is not supported yet:'\
 
851
        ' files %(files_str)s'
 
852
 
 
853
    def __init__(self, files):
 
854
        files_str = ', '.join(files)
 
855
        BzrError.__init__(self, files=files, files_str=files_str)
 
856
 
 
857
 
848
858
class UpgradeReadonly(BzrError):
849
859
 
850
860
    _fmt = "Upgrade URL cannot work with readonly URLs."
1569
1579
 
1570
1580
    _fmt = "Bad parameter: %(param)r"
1571
1581
 
 
1582
    internal_error = True
 
1583
 
1572
1584
    # This exception should never be thrown, but it is a base class for all
1573
1585
    # parameter-to-function errors.
1574
1586