mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°8772 - OQL exceptions
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user