async def common_exception_handler(cls, request: Request, error: Exception):
        """Wraps errors as custom generic error"""
        argilla_error = cls._exception_to_argilla_error(error)
        set_request_error(request, argilla_error)

        return await http_exception_handler(request, ServerHTTPException(argilla_error))
Wraps errors as custom generic error
argilla-server/src/argilla_server/errors/error_handler.py