Try to get better message in front of users if streamed ETL process is init'ed with no records

This commit is contained in:
2025-03-18 10:04:52 -05:00
parent 0f8ad2fb78
commit 244239f053
2 changed files with 3 additions and 3 deletions

View File

@ -22,13 +22,13 @@
package com.kingsrook.qqq.backend.core.processes.implementations.etl.streamedwithfrontend; 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
{ {
/******************************************************************************* /*******************************************************************************
** **

View File

@ -279,7 +279,7 @@ public class ExtractViaQueryStep extends AbstractExtractStep
return (new QQueryFilter().withCriteria(new QFilterCriteria(table.getPrimaryKeyField(), QCriteriaOperator.IN, idStrings))); 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."));
} }