You are not logged in.
Pages: 1
try
RestModel.Orm.Add(ORM, 'test');
except
// It seems that EngineAdd swallows the exceptions raised by RaiseUtf8, and I can't catch them. I'm not sure if I'm right.
on E: ESynException do
...
end;
function TRestStorageMongoDB.EngineAdd(TableModelIndex: integer;
const SentData: RawUtf8): TID;
class procedure ESynException.RaiseUtf8(const Format: RawUtf8;
const Args: array of const);
begin
raise CreateUtf8(Format, Args);
end;
The EngineAdd method throws an exception while returning 0. Thus, I was able to catch it.
Last edited by testgary (2025-09-11 09:43:57)
Offline
Pages: 1