/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: Canonical.com Patch Queue Manager
  • Date: 2006-09-13 02:27:00 UTC
  • mfrom: (1996.1.27 lazy_importer)
  • Revision ID: pqm@pqm.ubuntu.com-20060913022700-feca914a6d5495f2
(jam) lazy_import module allows on-demand loading of objects, can help startup time

Show diffs side-by-side

added added

removed removed

Lines of Context:
1182
1182
    def __init__(self, revision_id):
1183
1183
        BzrNewError.__init__(self)
1184
1184
        self.revision_id = revision_id
 
1185
 
 
1186
 
 
1187
class IllegalUseOfScopeReplacer(BzrNewError):
 
1188
    """ScopeReplacer object %(name)r was used incorrectly: %(msg)s%(extra)s"""
 
1189
 
 
1190
    is_user_error = False
 
1191
 
 
1192
    def __init__(self, name, msg, extra=None):
 
1193
        BzrNewError.__init__(self)
 
1194
        self.name = name
 
1195
        self.msg = msg
 
1196
        if extra:
 
1197
            self.extra = ': ' + str(extra)
 
1198
        else:
 
1199
            self.extra = ''
 
1200
 
 
1201
 
 
1202
class InvalidImportLine(BzrNewError):
 
1203
    """Not a valid import statement: %(msg)\n%(text)s"""
 
1204
 
 
1205
    is_user_error = False
 
1206
 
 
1207
    def __init__(self, text, msg):
 
1208
        BzrNewError.__init__(self)
 
1209
        self.text = text
 
1210
        self.msg = msg
 
1211
 
 
1212
 
 
1213
class ImportNameCollision(BzrNewError):
 
1214
    """Tried to import an object to the same name as an existing object. %(name)s"""
 
1215
 
 
1216
    is_user_error = False
 
1217
 
 
1218
    def __init__(self, name):
 
1219
        BzrNewError.__init__(self)
 
1220
        self.name = name