public static function errorHandler($errNo, $errMsg, $fileName, $lineNum, $vars)
    {
        // don't respond to the error if it
        // was suppressed with a '@'        
        if (error_reporting() == 0) {
            return;
        }

        if ($errNo == E_NOTICE || $errNo == E_STRICT) { // || $errno == E_WARNING)
            return; // ignore notice error
        }
        
        $debug_array = debug_backtrace();
        $back_trace = self::_errorBacktrace($debug_array);
        $err = self::_getOutputErrorMsg($errNo, $errMsg, $fileName, $lineNum, $back_trace);
        
        Openbizx::$app->getLog()->logError($errNo, "ErrorHandler", $errMsg, null, $back_trace);

        if ((defined('CLI') && CLI) || self::$errorMode == 'text') {
            // echo $err;
        } else {
            Openbizx::$app->getClientProxy()->showErrorMessage($err, true);
        }
        if ($errNo == E_USER_ERROR || $errNo == E_ERROR) {
            Openbizx::$app->getClientProxy()->printOutput();
            exit();
        }
    }
public static function errorHandler($errNo, $errMsg, $fileName, $lineNum, $vars)
    {
        // don't respond to the error if it
        // was suppressed with a '@'        
        if (error_reporting() == 0) {
            return;
        }

        if ($errNo == E_NOTICE || $errNo == E_STRICT) { // || $errno == E_WARNING)
            return; // ignore notice error
        }
        
        $debug_array = debug_backtrace();
        $back_trace = self::_errorBacktrace($debug_array);
        $err = self::_getOutputErrorMsg($errNo, $errMsg, $fileName, $lineNum, $back_trace);
        
        Openbizx::$app->getLog()->logError($errNo, "ErrorHandler", $errMsg, null, $back_trace);

        if ((defined('CLI') && CLI) || self::$errorMode == 'text') {
            // echo $err;
        } else {
            Openbizx::$app->getClientProxy()->showErrorMessage($err, true);
        }
        if ($errNo == E_USER_ERROR || $errNo == E_ERROR) {
            Openbizx::$app->getClientProxy()->printOutput();
            exit();
        }
    }
public static function errorHandler ( $ errNo , $ errMsg , $ fileName , $ lineNum , $ vars ) { // don't respond to the error if it // was suppressed with a '@'         if ( error_reporting ( ) == 0 ) { return ; } if ( $ errNo == E_NOTICE || $ errNo == E_STRICT ) { // || $errno == E_WARNING) return ; // ignore notice error } $ debug_array = debug_backtrace ( ) ; $ back_trace = self :: _errorBacktrace ( $ debug_array ) ; $ err = self :: _getOutputErrorMsg ( $ errNo , $ errMsg , $ fileName , $ lineNum , $ back_trace ) ; Openbizx :: $ app -> getLog ( ) -> logError ( $ errNo , "ErrorHandler" , $ errMsg , null , $ back_trace ) ; if ( ( defined ( 'CLI' ) && CLI ) || self :: $ errorMode == 'text' ) { // echo $err; } else { Openbizx :: $ app -> getClientProxy ( ) -> showErrorMessage ( $ err , true ) ; } if ( $ errNo == E_USER_ERROR || $ errNo == E_ERROR ) { Openbizx :: $ app -> getClientProxy ( ) -> printOutput ( ) ; exit ( ) ; } }
User error handler

@param number $errNo error number
@param string $errMsg error message
@param string $fileName file name where the error occurred
@param number $lineNum line number where the error occurred
@param <type> $vars (not yet implemented)
@return void
User error handler