##// END OF EJS Templates
Added custom error.
ilin.s -
r1283:57090f1d default
parent child Browse files
Show More
@@ -53,6 +53,12 b' def ArchiveException(org_exc=None):'
53 53 return _make_exception_wrapper
54 54
55 55
56 def ClientNotSupportedException(org_exc=None):
57 def _make_exception_wrapper(*args):
58 return _make_exception('client_not_supported', org_exc, *args)
59 return _make_exception_wrapper
60
61
56 62 def LookupException(org_exc=None):
57 63 def _make_exception_wrapper(*args):
58 64 return _make_exception('lookup', org_exc, *args)
@@ -167,6 +167,8 b' def _handle_exception(result):'
167 167
168 168 if exception_class == 'HTTPLockedRC':
169 169 raise exceptions.RepositoryLockedException()(*result['exception_args'])
170 elif exception_class == 'ClientNotSupportedError':
171 raise exceptions.ClientNotSupportedException()(*result['exception_args'])
170 172 elif exception_class == 'HTTPBranchProtected':
171 173 raise exceptions.RepositoryBranchProtectedException()(*result['exception_args'])
172 174 elif exception_class == 'RepositoryError':
General Comments 0
You need to be logged in to leave comments. Login now