[docs]classJsonRPCException(Exception):r"""This is a base class which represents errors with the jsonrpc client"""
[docs]classJsonRPCVersionMismatch(JsonRPCException):r"""This is raised when the jsonrpc client receives a jsonrpc version which it isn't looking for Attributes -------- expected: :class:`str` The Json RPC version it expected received: :class:`str` The Json RPC version it received """def__init__(self,expected:str,received:str)->None:super().__init__(f"Expected to get version {expected}, but got {received} instead.")self.expected=expectedself.received=received