comparison mercurial/error.py @ 32340:9c023179e8d0

error: add hint to ProgrammingError As the hint isn't shown by the default exception handler, we need to print it manually. I've copied the "** " style from _exceptionwarning().
author Yuya Nishihara <yuya@tcha.org>
date Sun, 14 May 2017 15:41:27 +0900
parents a29580905771
children c8e10565a113
comparison
equal deleted inserted replaced
32339:92de09a05d7f 32340:9c023179e8d0
172 pass 172 pass
173 173
174 class PushRaced(RuntimeError): 174 class PushRaced(RuntimeError):
175 """An exception raised during unbundling that indicate a push race""" 175 """An exception raised during unbundling that indicate a push race"""
176 176
177 class ProgrammingError(RuntimeError): 177 class ProgrammingError(Hint, RuntimeError):
178 """Raised if a mercurial (core or extension) developer made a mistake""" 178 """Raised if a mercurial (core or extension) developer made a mistake"""
179 179
180 # bundle2 related errors 180 # bundle2 related errors
181 class BundleValueError(ValueError): 181 class BundleValueError(ValueError):
182 """error raised when bundle2 cannot be processed""" 182 """error raised when bundle2 cannot be processed"""