Пример #1
0
 /**
  * Handle the exception from DataObj method,
  *  report the error as an alert window
  *
  * @param int $errCode
  * @return string
  */
 public function processBDOException($e)
 {
     $errorMsg = $e->getMessage();
     BizSystem::log(LOG_ERR, "DATAOBJ", "DataObj error = " . $errorMsg);
     //BizSystem::clientProxy()->showClientAlert($errorMsg);   //showErrorMessage($errorMsg);
     //BizSystem::clientProxy()->showErrorMessage($errorMsg);
     $e->no_exit = true;
     OB_ErrorHandler::ExceptionHandler($e);
 }
Пример #2
0
/**
 * User exception handler function
 * @package openbiz.bin
 * @param <type> $exc
 */
function userExceptionHandler($exc)
{
    //include_once(OPENBIZ_BIN.'ErrorHandler.php');
    OB_ErrorHandler::ExceptionHandler($exc);
}