N°8772 - OQL exceptions

This commit is contained in:
Eric Espie
2025-11-26 09:34:21 +01:00
parent 8e3d132714
commit 852238a110
2 changed files with 10 additions and 4 deletions

View File

@@ -33,6 +33,8 @@ class OqlToClassConverter extends AbstractConverter
$oModelReflection = DIService::GetInstance()->GetService('ModelReflection');
try {
$oQuery = $oModelReflection->GetQuery($oData);
} catch (\OQLParserException $e) {
throw new FormBlockIOException($e->GetIssue(), $e->getCode(), $e);
} catch (Exception $e) {
throw new FormBlockIOException($e->getMessage(), $e->getCode(), $e);
}