comparison mercurial/error.py @ 26355:f51713b8c6fa

error: add an exception to indicate lock inheritance API contract violations
author Siddharth Agarwal <sid0@fb.com>
date Thu, 24 Sep 2015 10:53:16 -0700
parents 147bd9e238a1
children cff70549a959
comparison
equal deleted inserted replaced
26354:c1fb2cab6260 26355:f51713b8c6fa
112 self.locker = locker 112 self.locker = locker
113 113
114 class LockUnavailable(LockError): 114 class LockUnavailable(LockError):
115 pass 115 pass
116 116
117 # LockError is for errors while acquiring the lock -- this is unrelated
118 class LockInheritanceContractViolation(AssertionError):
119 pass
120
117 class ResponseError(Exception): 121 class ResponseError(Exception):
118 """Raised to print an error with part of output and exit.""" 122 """Raised to print an error with part of output and exit."""
119 123
120 class UnknownCommand(Exception): 124 class UnknownCommand(Exception):
121 """Exception raised if command is not in the command table.""" 125 """Exception raised if command is not in the command table."""