mercurial/error.py
changeset 39559 07b58266bce3
parent 38841 df0873ab5c14
child 39579 921aeb9ac508
equal deleted inserted replaced
39558:b0e0db1565d1 39559:07b58266bce3
   306     """Transport-level I/O error when communicating with a peer repo."""
   306     """Transport-level I/O error when communicating with a peer repo."""
   307 
   307 
   308 class InMemoryMergeConflictsError(Exception):
   308 class InMemoryMergeConflictsError(Exception):
   309     """Exception raised when merge conflicts arose during an in-memory merge."""
   309     """Exception raised when merge conflicts arose during an in-memory merge."""
   310     __bytes__ = _tobytes
   310     __bytes__ = _tobytes
       
   311 
       
   312 class WireprotoCommandError(Exception):
       
   313     """Represents an error during execution of a wire protocol command.
       
   314 
       
   315     Should only be thrown by wire protocol version 2 commands.
       
   316 
       
   317     The error is a formatter string and an optional iterable of arguments.
       
   318     """
       
   319     def __init__(self, message, args=None):
       
   320         self.message = message
       
   321         self.messageargs = args