def METHOD_NAME(
        self,
        exception: Exception,
) -> type[View]:
    class AcquiringErrorView(View):
        def handle_request(self, request):
            raise exception
    return AcquiringErrorView