~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-18 19:21:11 UTC
  • mfrom: (2196 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2209.
  • Revision ID: john@arbash-meinel.com-20061218192111-3fc13nmt21u3f1wm
[merge] bzr.dev 2196

Show diffs side-by-side

added added

removed removed

Lines of Context:
932
932
 
933
933
class KnitHeaderError(KnitError):
934
934
 
935
 
    _fmt = "Knit header error: %(badline)r unexpected"
 
935
    _fmt = "Knit header error: %(badline)r unexpected for file %(filename)s"
936
936
 
937
 
    def __init__(self, badline):
 
937
    def __init__(self, badline, filename):
938
938
        KnitError.__init__(self)
939
939
        self.badline = badline
 
940
        self.filename = filename
940
941
 
941
942
 
942
943
class KnitCorrupt(KnitError):
1413
1414
        self.tname = type(method_self).__name__
1414
1415
 
1415
1416
 
 
1417
class CannotSetRevisionId(UnsupportedOperation):
 
1418
    """Raised when a commit is attempting to set a revision id but cant."""
 
1419
 
 
1420
 
 
1421
class NonAsciiRevisionId(UnsupportedOperation):
 
1422
    """Raised when a commit is attempting to set a non-ascii revision id but cant."""
 
1423
 
 
1424
 
1416
1425
class BinaryFile(BzrError):
1417
1426
    
1418
1427
    _fmt = "File is binary but should be text."