diff mercurial/error.py @ 23010:73f394f4affc

bundle2: add an UnsupportedPartError We need the BundleValueError for format errors not related to part support. So we add a specific class for part-support errors.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 15 Oct 2014 03:22:47 -0700
parents 244478687edd
children f00813325c5a
line wrap: on
line diff
--- a/mercurial/error.py	Wed Oct 01 23:40:23 2014 -0500
+++ b/mercurial/error.py	Wed Oct 15 03:22:47 2014 -0700
@@ -102,6 +102,7 @@
 class BundleValueError(ValueError):
     """error raised when bundle2 cannot be processed"""
 
+class UnsupportedPartError(BundleValueError):
     def __init__(self, parttype=None, params=()):
         self.parttype = parttype
         self.params = params