Mercurial > public > mercurial-scm > hg
diff mercurial/error.py @ 21618:7568f5c1c801
bundle2: move exception classes into the error module
Exceptions should have known their place.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 28 May 2014 15:31:05 -0700 |
parents | 28d76afa1568 |
children | 6eaa71b2a3cc |
line wrap: on
line diff
--- a/mercurial/error.py Wed May 28 14:22:24 2014 -0700 +++ b/mercurial/error.py Wed May 28 15:31:05 2014 -0700 @@ -98,3 +98,14 @@ class PushRaced(RuntimeError): """An exception raised during unbundling that indicate a push race""" +# bundle2 related errors +class BundleValueError(ValueError): + """error raised when bundle2 cannot be processed + + Current main usecase is unsupported part types.""" + pass + +class ReadOnlyPartError(RuntimeError): + """error raised when code tries to alter a part being generated""" + pass +