Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/error.py @ 30590:0f865311ae3f
error: make it clear that ProgrammingError is for mercurial developers
The word "developer" could refer to users - people using hg are likely to be
developers. Add adjectives to make it refer to mercurial developers only.
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 12 Dec 2016 08:01:52 +0000 |
parents | b0ebab239f90 |
children | 0ca00905f769 |
comparison
equal
deleted
inserted
replaced
30589:be5b2098a817 | 30590:0f865311ae3f |
---|---|
167 | 167 |
168 class PushRaced(RuntimeError): | 168 class PushRaced(RuntimeError): |
169 """An exception raised during unbundling that indicate a push race""" | 169 """An exception raised during unbundling that indicate a push race""" |
170 | 170 |
171 class ProgrammingError(RuntimeError): | 171 class ProgrammingError(RuntimeError): |
172 """Raised if a developer has made some mistake""" | 172 """Raised if a mercurial (core or extension) developer made a mistake""" |
173 | 173 |
174 # bundle2 related errors | 174 # bundle2 related errors |
175 class BundleValueError(ValueError): | 175 class BundleValueError(ValueError): |
176 """error raised when bundle2 cannot be processed""" | 176 """error raised when bundle2 cannot be processed""" |
177 | 177 |