public static function exceptionHandler($exc)
    {
        $errno = $exc->getCode();
        $errmsg = $exc->getMessage();
        $filename = $exc->getFile();
        $linenum = $exc->getLine();
        $debug_array = $exc->getTrace();
        $back_trace = self::_errorBacktrace($debug_array);
        $err = self::_getOutputErrorMsg($errno, $errmsg, $filename, $linenum, $back_trace);

        Openbizx::$app->getLog()->logError($errno, "ExceptionHandler", $errmsg, null, $back_trace);

        if ((defined('CLI') && CLI) || self::$errorMode == 'text') {
            echo $err;
        } else {
            Openbizx::$app->getClientProxy()->showErrorMessage($err, true);
        }
        if (!$exc->no_exit) {
            Openbizx::$app->getClientProxy()->printOutput();
            exit();
        }
    }