#1 2024-05-22 10:38:43

rdevine
Member
Registered: 2014-02-20
Posts: 52

Exception needed in Retrieve

If I try to use CreateAndFillPrepare with a TAuthUser subclass that isn't in the model I get an exception as expected. But if I do the same with Retrieve it fails silently (returns false). Would be useful to have an exception here also.

Cheers, Bob

Offline

#2 2024-05-22 11:59:11

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Exception needed in Retrieve

It is either one or the other.
If there is a result boolean, you just need to check the returned boolean value.
Since CreateAndFillPrepare is a constructor, we don't have any returned boolean value, so here an exception is needed.

Offline

#3 2024-05-22 13:28:41

rdevine
Member
Registered: 2014-02-20
Posts: 52

Re: Exception needed in Retrieve

Yeah I was checking the return value but had missed that I'd declared the wrong subclass. The type of oversight that can take a while to spot :-)

Offline

Board footer

Powered by FluxBB