From 244239f05348032ba1de4bf9aed3563c2b4ba11e Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Tue, 18 Mar 2025 10:04:52 -0500 Subject: [PATCH] Try to get better message in front of users if streamed ETL process is init'ed with no records --- .../CouldNotFindQueryFilterForExtractStepException.java | 4 ++-- .../etl/streamedwithfrontend/ExtractViaQueryStep.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/CouldNotFindQueryFilterForExtractStepException.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/CouldNotFindQueryFilterForExtractStepException.java index cf405c4a..96ad93ad 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/CouldNotFindQueryFilterForExtractStepException.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/CouldNotFindQueryFilterForExtractStepException.java @@ -22,13 +22,13 @@ package com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend; -import com.kingsrook.qqq.backend.core.exceptions.QException; +import com.kingsrook.qqq.backend.core.exceptions.QUserFacingException; /******************************************************************************* ** *******************************************************************************/ -public class CouldNotFindQueryFilterForExtractStepException extends QException +public class CouldNotFindQueryFilterForExtractStepException extends QUserFacingException { /******************************************************************************* ** diff --git a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/ExtractViaQueryStep.java b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/ExtractViaQueryStep.java index 7269b75d..5391fe6b 100644 --- a/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/ExtractViaQueryStep.java +++ b/qqq-backend-core/src/main/java/com/kingsrook/qqq/backend/core/processes/implementations/etl/streamedwithfrontend/ExtractViaQueryStep.java @@ -279,7 +279,7 @@ public class ExtractViaQueryStep extends AbstractExtractStep return (new QQueryFilter().withCriteria(new QFilterCriteria(table.getPrimaryKeyField(), QCriteriaOperator.IN, idStrings))); } - throw (new CouldNotFindQueryFilterForExtractStepException("Could not find query filter for Extract step.")); + throw (new CouldNotFindQueryFilterForExtractStepException("No records were selected for running this process.")); }