/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: John Arbash Meinel
  • Date: 2007-04-23 19:23:14 UTC
  • mfrom: (2446 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2456.
  • Revision ID: john@arbash-meinel.com-20070423192314-y2x7sr7yupacqglk
[merge] bzr.dev 2446

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        self.message = message
176
176
 
177
177
 
 
178
class DisabledMethod(BzrError):
 
179
 
 
180
    _fmt = "The smart server method '%(class_name)s' is disabled."
 
181
 
 
182
    internal_error = True
 
183
 
 
184
    def __init__(self, class_name):
 
185
        BzrError.__init__(self)
 
186
        self.class_name = class_name
 
187
 
 
188
 
178
189
class InvalidEntryName(BzrError):
179
190
    
180
191
    _fmt = "Invalid entry name: %(name)s"
212
223
    def __init__(self, revision_id):
213
224
        self.revision_id = revision_id
214
225
 
 
226
 
 
227
class NoHelpTopic(BzrError):
 
228
 
 
229
    _fmt = ("No help could be found for '%(topic)s'. "
 
230
        "Please use 'bzr help topics' to obtain a list of topics.")
 
231
 
 
232
    def __init__(self, topic):
 
233
        self.topic = topic
 
234
 
 
235
 
215
236
class NoSuchId(BzrError):
216
237
 
217
238
    _fmt = "The file id %(file_id)s is not present in the tree %(tree)s."
798
819
        self.lock = lock
799
820
 
800
821
 
 
822
class TokenLockingNotSupported(LockError):
 
823
 
 
824
    _fmt = "The object %(obj)s does not support token specifying a token when locking."
 
825
 
 
826
    internal_error = True
 
827
 
 
828
    def __init__(self, obj):
 
829
        self.obj = obj
 
830
 
 
831
 
 
832
class TokenMismatch(LockBroken):
 
833
 
 
834
    _fmt = "The lock token %(given_token)r does not match lock token %(lock_token)r."
 
835
 
 
836
    internal_error = True
 
837
 
 
838
    def __init__(self, given_token, lock_token):
 
839
        self.given_token = given_token
 
840
        self.lock_token = lock_token
 
841
 
 
842
 
801
843
class PointlessCommit(BzrError):
802
844
 
803
845
    _fmt = "No changes to commit"
1205
1247
 
1206
1248
    _fmt = ("The medium '%(medium)s' has reached its concurrent request limit."
1207
1249
            " Be sure to finish_writing and finish_reading on the"
1208
 
            " current request that is open.")
 
1250
            " currently open request.")
1209
1251
 
1210
1252
    internal_error = True
1211
1253
 
1498
1540
    _fmt = "Key %(key)s is already present in map"
1499
1541
 
1500
1542
 
 
1543
class DuplicateHelpPrefix(BzrError):
 
1544
 
 
1545
    _fmt = "The prefix %(prefix)s is in the help search path twice."
 
1546
 
 
1547
    def __init__(self, prefix):
 
1548
        self.prefix = prefix
 
1549
 
 
1550
 
1501
1551
class MalformedTransform(BzrError):
1502
1552
 
1503
1553
    _fmt = "Tree transform is malformed %(conflicts)r"
2023
2073
class TagsNotSupported(BzrError):
2024
2074
 
2025
2075
    _fmt = ("Tags not supported by %(branch)s;"
2026
 
            " you may be able to use bzr upgrade.")
 
2076
            " you may be able to use bzr upgrade --dirstate-tags.")
2027
2077
 
2028
2078
    def __init__(self, branch):
2029
2079
        self.branch = branch
2035
2085
 
2036
2086
    def __init__(self, tag_name):
2037
2087
        self.tag_name = tag_name
 
2088
 
 
2089
 
 
2090
class MalformedBugIdentifier(BzrError):
 
2091
 
 
2092
    _fmt = "Did not understand bug identifier %(bug_id)s: %(reason)s"
 
2093
 
 
2094
    def __init__(self, bug_id, reason):
 
2095
        self.bug_id = bug_id
 
2096
        self.reason = reason
 
2097
 
 
2098
 
 
2099
class UnknownBugTrackerAbbreviation(BzrError):
 
2100
 
 
2101
    _fmt = ("Cannot find registered bug tracker called %(abbreviation)s "
 
2102
            "on %(branch)s")
 
2103
 
 
2104
    def __init__(self, abbreviation, branch):
 
2105
        self.abbreviation = abbreviation
 
2106
        self.branch = branch
 
2107
 
 
2108
 
 
2109
class UnexpectedSmartServerResponse(BzrError):
 
2110
 
 
2111
    _fmt = "Could not understand response from smart server: %(response_tuple)r"
 
2112
 
 
2113
    def __init__(self, response_tuple):
 
2114
        self.response_tuple = response_tuple