<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def on_raw_error(self, message):
 """ Server encountered an error and will now close the connection. """

        error = protocol.ServerError(' '.join(message.params))
        await self.on_data_error(error)