Esempio n. 1
0
 /**
  * @param ASTFunctionCall $functionCall
  *
  * @return mixed
  * @throws Exception\UQLInterpreterException
  */
 private function callFunction(ASTFunctionCall $functionCall)
 {
     try {
         return $this->extensionContainer->callFunction($functionCall->getFunctionName(), $functionCall->getArguments());
     } catch (\Exception $e) {
         throw new UQLInterpreterException("The execution of function '" . $functionCall->getFunctionName() . "' failed. Please check the arguments are valid. (" . $e->getMessage() . ")");
     }
 }