Add QException to some methods in here.

This commit is contained in:
2025-06-18 15:37:41 -05:00
parent 4fd68f9195
commit 5327424cec
3 changed files with 5 additions and 5 deletions

View File

@ -47,12 +47,12 @@ public abstract class BasicCustomPossibleValueProvider<S, ID extends Serializabl
/*************************************************************************** /***************************************************************************
** **
***************************************************************************/ ***************************************************************************/
protected abstract S getSourceObject(Serializable id); protected abstract S getSourceObject(Serializable id) throws QException;
/*************************************************************************** /***************************************************************************
** **
***************************************************************************/ ***************************************************************************/
protected abstract List<S> getAllSourceObjects(); protected abstract List<S> getAllSourceObjects() throws QException;
@ -60,7 +60,7 @@ public abstract class BasicCustomPossibleValueProvider<S, ID extends Serializabl
** **
***************************************************************************/ ***************************************************************************/
@Override @Override
public QPossibleValue<ID> getPossibleValue(Serializable idValue) public QPossibleValue<ID> getPossibleValue(Serializable idValue) throws QException
{ {
S sourceObject = getSourceObject(idValue); S sourceObject = getSourceObject(idValue);
if(sourceObject == null) if(sourceObject == null)

View File

@ -45,7 +45,7 @@ public interface QCustomPossibleValueProvider<T extends Serializable>
/******************************************************************************* /*******************************************************************************
** **
*******************************************************************************/ *******************************************************************************/
QPossibleValue<T> getPossibleValue(Serializable idValue); QPossibleValue<T> getPossibleValue(Serializable idValue) throws QException;
/******************************************************************************* /*******************************************************************************
** **

View File

@ -80,7 +80,7 @@ class TablesCustomPossibleValueProviderTest extends BaseTest
** **
*******************************************************************************/ *******************************************************************************/
@Test @Test
void testGetPossibleValue() void testGetPossibleValue() throws QException
{ {
TablesCustomPossibleValueProvider provider = new TablesCustomPossibleValueProvider(); TablesCustomPossibleValueProvider provider = new TablesCustomPossibleValueProvider();