~ubuntu-branches/ubuntu/quantal/bzr-svn/quantal

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-11-10 02:31:45 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20081110023145-h7vtophkjmcajp9g
Tags: 0.4.15-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        self.path = path
95
95
 
96
96
 
97
 
class RaRequestFailed(BzrError):
98
 
    _fmt = """A Subversion remote access command failed: %(message)"""
99
 
 
100
 
    def __init__(self, message):
101
 
        BzrError.__init__(self)
102
 
        self.mesage = message
103
 
 
104
 
 
105
97
class RevpropChangeFailed(BzrError):
106
98
    _fmt = """Unable to set revision property %(name)s."""
107
99
 
111
103
 
112
104
 
113
105
class DavRequestFailed(BzrError):
114
 
    _fmt = """%(msg)s"""
 
106
    _fmt = """A Subversion remote access command failed: %(msg)s"""
115
107
 
116
108
    def __init__(self, msg):
117
109
        BzrError.__init__(self)
138
130
        return TransportError("Malformed data", msg)
139
131
    elif num == ERR_RA_NOT_IMPLEMENTED:
140
132
        return NotImplementedError("Function not implemented in remote server")
141
 
    elif num == ERR_RA_DAV_REQUEST_FAILED:
142
 
        return RaRequestFailed(msg)
143
133
    elif num == ERR_UNKNOWN_HOSTNAME:
144
134
        return ConnectionError(msg=msg)
145
135
    elif num == ERR_RA_DAV_REQUEST_FAILED: