Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/error.py @ 26438:024644b1900b
error: make lock inheritance contract violations a subclass of RuntimeError
This is more appropriate, per Pierre-Yves David.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Fri, 25 Sep 2015 12:56:05 -0700 |
parents | e75da738add5 |
children | b13fdcc4e700 |
comparison
equal
deleted
inserted
replaced
26437:4628b26f040e | 26438:024644b1900b |
---|---|
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 | 117 # LockError is for errors while acquiring the lock -- this is unrelated |
118 class LockInheritanceContractViolation(AssertionError): | 118 class LockInheritanceContractViolation(RuntimeError): |
119 pass | 119 pass |
120 | 120 |
121 class ResponseError(Exception): | 121 class ResponseError(Exception): |
122 """Raised to print an error with part of output and exit.""" | 122 """Raised to print an error with part of output and exit.""" |
123 | 123 |