Example #1
0
 private function excuteResult(array $resultMap)
 {
     $result = null;
     try {
         $result = AbstractFactory::create(Config::RESULT(), "Result" . $resultMap['type']);
     } catch (FileException $fe) {
         if ($fe->getCode() == FileException::CLASS_FILE_NOT_FOUND) {
             throw new CheckedException("Rresult type  " . "Result" . $resultMap['type'] . " is undefined", CheckedException::RESULT_UNDEFINED, $fe);
         }
     } catch (CheckedException $ce) {
         if ($ce->getCode() == CheckedException::RESULT_UNDEFINED) {
             throw new CheckedException("Rresult type  " . "Result" . $resultMap['type'] . " is undefined", CheckedException::RESULT_UNDEFINED, $fe);
         }
     }
     $result->createResult($resultMap);
 }