~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2007-06-14 11:23:38 UTC
  • mto: (2506.2.7 container-format)
  • mto: This revision was merged to the branch mainline in revision 2572.
  • Revision ID: andrew.bennetts@canonical.com-20070614112338-6u3900u6nkag66u8
Return a callable instead of a str from read, and add more validation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2178
2178
    def __init__(self, excess):
2179
2179
        self.excess = excess
2180
2180
 
 
2181
 
 
2182
class DuplicateRecordNameError(ContainerError):
 
2183
 
 
2184
    _fmt = "Container has multiple records with the same name: \"%(name)s\""
 
2185
 
 
2186
    def __init__(self, name):
 
2187
        self.name = name
 
2188