old_contents: """
  Exceptions.
  
  These exceptions are raised when processing responses from the server.
  
  To handle them, use a try-block when calling send/request/notify:
  
      try:
          client.notify('go')
      except JsonRpcClientError as e:
          ...
  """
  from jsonrpcclient.response import JSONRPCResponse
  
  
  class JsonRpcClientError(Exception):
      """Base class for the other exceptions."""
  
      pass
  
  
  class ReceivedNon2xxResponseError(JsonRpcClientError):
      """The response was not valid JSON."""
  
      def __init__(self, status_code: int) -> None:
          super().__init__("Received {} status code".format(status_code))
          self.code = status_code
  
  
  class ReceivedErrorResponseError(JsonRpcClientError):
      """The response was an error response."""
  
      def __init__(self, response: JSONRPCResponse) -> None:
          super().__init__("Received error response: {response.message}")
          self.response = response
  
new_contents: """
  Exceptions.
  
  These exceptions are raised when processing responses from the server.
  
  To handle them, use a try-block when calling send/request/notify:
  
      try:
          client.notify('go')
      except JsonRpcClientError as e:
          ...
  """
  from jsonrpcclient.response import JSONRPCResponse
  
  
  class JsonRpcClientError(Exception):
      """Base class for the other exceptions."""
  
      pass
  
  
  class ReceivedNon2xxResponseError(JsonRpcClientError):
      """The response was not valid JSON."""
  
      def __init__(self, status_code: int) -> None:
          super().__init__("Received {} status code".format(status_code))
          self.code = status_code
  
  
  class ReceivedErrorResponseError(JsonRpcClientError):
      """The response was an error response."""
  
      def __init__(self, response: JSONRPCResponse) -> None:
          super().__init__(response.message)
          self.response = response
  
subject: Adjust an exception