comparison mercurial/error.py @ 26393:cff70549a959

bundle2: rename error exception class for unsupported feature The original name explicitly mention "Part", however it is also used outside of parts related feature. We rename from 'UnsupportedPartError' to 'BundleUnknownFeatureError' to fix this.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 23 Sep 2015 11:44:52 -0700
parents f51713b8c6fa
children e75da738add5
comparison
equal deleted inserted replaced
26392:127b59787fd5 26393:cff70549a959
139 139
140 # bundle2 related errors 140 # bundle2 related errors
141 class BundleValueError(ValueError): 141 class BundleValueError(ValueError):
142 """error raised when bundle2 cannot be processed""" 142 """error raised when bundle2 cannot be processed"""
143 143
144 class UnsupportedPartError(BundleValueError): 144 class BundleUnknownFeatureError(BundleValueError):
145 def __init__(self, parttype=None, params=()): 145 def __init__(self, parttype=None, params=()):
146 self.parttype = parttype 146 self.parttype = parttype
147 self.params = params 147 self.params = params
148 if self.parttype is None: 148 if self.parttype is None:
149 msg = 'Stream Parameter' 149 msg = 'Stream Parameter'