mercurial/error.py
changeset 45680 bb1a988ef4a5
parent 45679 65e2b64670b5
child 45682 d2e1dcd4490d
equal deleted inserted replaced
45679:65e2b64670b5 45680:bb1a988ef4a5
   108     __bytes__ = _tobytes
   108     __bytes__ = _tobytes
   109 
   109 
   110 
   110 
   111 class UnknownCommand(Exception):
   111 class UnknownCommand(Exception):
   112     """Exception raised if command is not in the command table."""
   112     """Exception raised if command is not in the command table."""
       
   113 
       
   114     def __init__(self, command, all_commands=None):
       
   115         self.command = command
       
   116         self.all_commands = all_commands
       
   117         super(UnknownCommand, self).__init__()
   113 
   118 
   114     __bytes__ = _tobytes
   119     __bytes__ = _tobytes
   115 
   120 
   116 
   121 
   117 class AmbiguousCommand(Exception):
   122 class AmbiguousCommand(Exception):