code: async def handle_websocket_exception(self, error: Exception) -> Optional[Response]:
          
          await got_websocket_exception.send(self, exception=error)
  
          self.log_exception(sys.exc_info())
  
          internal_server_error = all_http_exceptions[500]()
          handler = self._find_exception_handler(internal_server_error)
  
          if handler is None:
              return internal_server_error.get_response()
          else:
              return await self.finalize_websocket(await handler(error), from_error_handler=True)
docs: Handle an uncaught exception.
  
          By default this logs the exception and then re-raises it.