throw exception if the server uses a JSON-RPC version other than 2.0