mercurial/error.py
changeset 23010 73f394f4affc
parent 22595 244478687edd
child 23014 f00813325c5a
equal deleted inserted replaced
23009:90f86ad3d4ff 23010:73f394f4affc
   100 
   100 
   101 # bundle2 related errors
   101 # bundle2 related errors
   102 class BundleValueError(ValueError):
   102 class BundleValueError(ValueError):
   103     """error raised when bundle2 cannot be processed"""
   103     """error raised when bundle2 cannot be processed"""
   104 
   104 
       
   105 class UnsupportedPartError(BundleValueError):
   105     def __init__(self, parttype=None, params=()):
   106     def __init__(self, parttype=None, params=()):
   106         self.parttype = parttype
   107         self.parttype = parttype
   107         self.params = params
   108         self.params = params
   108         if self.parttype is None:
   109         if self.parttype is None:
   109             msg = 'Stream Parameter'
   110             msg = 'Stream Parameter'